]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - audiod.c
Make para_recv use the new scheduler.
[paraslash.git] / audiod.c
index 8d1d8eb8a48235a7a7355b29c633f9aae9be7990..1d2d69c17de28ee40bbefebc6ca61e0355cdd2da 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -24,6 +24,7 @@
 #include "audiod.cmdline.h"
 #include "list.h"
 #include "close_on_fork.h"
+#include "sched.h"
 #include "recv.h"
 #include "filter.h"
 #include "grab_client.cmdline.h"
@@ -892,6 +893,7 @@ static void check_timeouts(void)
                                audio_formats[s->format], slot_num);
                        if (s->fci)
                                s->fci->error = 42;
+                       kill_stream_writer(slot_num);
                }
        }
 }
@@ -935,6 +937,7 @@ static void close_decoder_if_idle(int slot_num)
                        return;
        }
        if (s->write_fd > 0) {
+               PARA_INFO_LOG("err: %d\n", s->fci->error);
                PARA_INFO_LOG("slot %d: closing write fd %d\n", slot_num,
                        s->write_fd);
                close(s->write_fd);