audiod: Invalidate the current audio format when closing the receiver.
authorAndre Noll <maan@systemlinux.org>
Sun, 20 Dec 2009 18:49:46 +0000 (19:49 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 20 Dec 2009 18:49:46 +0000 (19:49 +0100)
This avoids restarting the same receiver immediately as it causes audiod to
wait until the audio format status item is received again.

audiod.c

index 1e8591f..8fbd0a0 100644 (file)
--- 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)