decoder_thread: initialize decoder_control.quit

If left uninitialized, then the decoder thread quits spuriously.
This commit is contained in:
Max Kellermann 2009-11-04 09:44:50 +01:00
parent c043bf0f63
commit a027bdf118

View File

@ -333,6 +333,8 @@ decoder_thread_start(struct decoder_control *dc)
assert(dc->thread == NULL);
dc->quit = false;
dc->thread = g_thread_create(decoder_task, dc, true, &e);
if (dc->thread == NULL)
g_error("Failed to spawn decoder task: %s", e->message);