audiod: kill close_writer()
authorAndre <maan@p133.(none)>
Sun, 28 May 2006 18:59:39 +0000 (20:59 +0200)
committerAndre <maan@p133.(none)>
Sun, 28 May 2006 18:59:39 +0000 (20:59 +0200)
This is better handled by the wng event handler.

audiod.c

index c93a05f..4ed9cc9 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -494,26 +494,16 @@ static void close_receiver(int slot_num)
        s->receiver_node = NULL;
        set_restart_barrier(s->format, NULL);
 }
-static void close_writer(int slot_num)
-{
-       struct slot_info *s = &slot[slot_num];
-       if (s->wng) {
-               PARA_INFO_LOG("slot %d: closing writer node group\n",
-                       slot_num);
-               wng_close(s->wng);
-               s->wng = NULL;
-       }
-       if (s->fc)
-               *s->fc->output_eof = 1; /* FIXME */
-}
-
 
 static void kill_all_decoders(void)
 {
        int i;
 
-       FOR_EACH_SLOT(i)
-               close_writer(i);
+       FOR_EACH_SLOT(i) {
+               struct slot_info *s = &slot[i];
+               if (s->receiver_node)
+                       s->receiver_node->eof = 1;
+       }
 }
 
 static void check_sigchld(void)