From: Andre Noll Date: Sun, 20 Dec 2009 18:49:46 +0000 (+0100) Subject: audiod: Invalidate the current audio format when closing the receiver. X-Git-Tag: v0.4.1~5^2^2 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=4ea3743c93e581954e9b1cf8ec7a10c38b35cfee audiod: Invalidate the current audio format when closing the receiver. This avoids restarting the same receiver immediately as it causes audiod to wait until the audio format status item is received again. --- diff --git a/audiod.c b/audiod.c index 1e8591f0..8fbd0a00 100644 --- a/audiod.c +++ b/audiod.c @@ -311,6 +311,7 @@ static void close_receiver(int slot_num) a->receiver->close(s->receiver_node); free(s->receiver_node); s->receiver_node = NULL; + stat_task->current_audio_format_num = -1; } static void kill_all_decoders(int error)