decoder_thread: initialize decoder_control.quit
If left uninitialized, then the decoder thread quits spuriously.
This commit is contained in:
@@ -333,6 +333,8 @@ decoder_thread_start(struct decoder_control *dc)
|
|||||||
|
|
||||||
assert(dc->thread == NULL);
|
assert(dc->thread == NULL);
|
||||||
|
|
||||||
|
dc->quit = false;
|
||||||
|
|
||||||
dc->thread = g_thread_create(decoder_task, dc, true, &e);
|
dc->thread = g_thread_create(decoder_task, dc, true, &e);
|
||||||
if (dc->thread == NULL)
|
if (dc->thread == NULL)
|
||||||
g_error("Failed to spawn decoder task: %s", e->message);
|
g_error("Failed to spawn decoder task: %s", e->message);
|
||||||
|
Reference in New Issue
Block a user