]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
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 1e8591f0c1b1986d5b141217e13295a2c05b6392..8fbd0a00839979a97a0d40388f2f42809ce722eb 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)