From d0ad002f9e8a8d1898883209d902a97791cb8814 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 19 Dec 2009 16:50:28 +0100 Subject: [PATCH] audiod: Avoid starting the wrong decoder on server restarts. If para_server is restarted and starts streaming using another audio format than the one used before the restart, para_audiod might end up starting the decoder associated with the old audio format. Fix this by invalidating current_audio_format_num in close_stat_pipe() which is called when the server goes away. --- audiod.c | 1 + 1 file changed, 1 insertion(+) diff --git a/audiod.c b/audiod.c index d39f0f57..1e8591f0 100644 --- a/audiod.c +++ b/audiod.c @@ -949,6 +949,7 @@ static void close_stat_pipe(void) stat_task->length_seconds = 0; stat_task->offset_seconds = 0; stat_task->vss_status = 0; + stat_task->current_audio_format_num = -1; audiod_status_dump(); } -- 2.30.2