File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ struct state_video_compress_jpegxs {
102102 bool parse_fmt (char *fmt);
103103
104104 synchronized_queue<shared_ptr<struct video_frame >, DEFAULT_POOL_SIZE> in_queue;
105- synchronized_queue<shared_ptr<struct video_frame >, DEFAULT_POOL_SIZE > out_queue;
105+ synchronized_queue<shared_ptr<struct video_frame >, - 1 > out_queue;
106106
107107 thread worker_send;
108108 thread worker_get;
@@ -512,7 +512,13 @@ static shared_ptr<video_frame> jpegxs_compress_pop(void *state) {
512512}
513513
514514static void jpegxs_compress_done (void *state) {
515- delete (struct state_video_compress_jpegxs *) state;
515+ auto s = static_cast <state_video_compress_jpegxs *>(state);
516+ {
517+ std::scoped_lock l (s->mtx );
518+ // s->stop = true;
519+ // s->out_queue.pop(true);
520+ }
521+ delete s;
516522}
517523
518524static compress_module_info get_jpegxs_module_info () {
You can’t perform that action at this time.
0 commit comments