From 2d61a8005c74e9849ef53cd06113edf23cf72474 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 5 Sep 2014 09:09:03 +0200 Subject: [PATCH] audiod: Invalidate current audio format on close. Without this, audiod might start the next decoder instance too early, using the audio format of the current file. The oss writer seems to be particularly prone in triggering this. --- audiod.c | 1 + 1 file changed, 1 insertion(+) diff --git a/audiod.c b/audiod.c index a072071c..6dfef3a2 100644 --- a/audiod.c +++ b/audiod.c @@ -390,6 +390,7 @@ static void close_receiver(int slot_num) task_reap(&s->receiver_node->task); free(s->receiver_node); s->receiver_node = NULL; + stat_task->current_audio_format_num = -1; tv_add(now, &(struct timeval)EMBRACE(0, 200 * 1000), &a->restart_barrier); } -- 2.39.5