From: Andre Noll Date: Fri, 5 Sep 2014 07:09:03 +0000 (+0200) Subject: audiod: Invalidate current audio format on close. X-Git-Tag: v0.5.4~47^2~2 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=2d61a8005c74;p=paraslash.git 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. --- 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); }