audiod: Set the audio format restart barrier also when closing the receiver.
[paraslash.git] / audiod.c
index 5c17e6e..668b0f7 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -358,6 +358,8 @@ static void close_receiver(int slot_num)
        btr_free_node(s->receiver_node->btrn);
        free(s->receiver_node);
        s->receiver_node = NULL;
+       tv_add(now, &(struct timeval)EMBRACE(0, 200 * 1000),
+               &a->restart_barrier);
 }
 
 static void writer_cleanup(struct writer_node *wn)