]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - server.c
convert para_audiod to the new scheduler.
[paraslash.git] / server.c
index 56162735a9030df40863cfb89a81894206ed49da..1805c92b62de84d7131bf71c905dc3d8d23a0d93 100644 (file)
--- a/server.c
+++ b/server.c
@@ -33,6 +33,7 @@
 #include "db.h"
 #include "server.h"
 #include "afs.h"
 #include "db.h"
 #include "server.h"
 #include "afs.h"
+#include "afh.h" /* FIXME */
 #include "config.h"
 #include "close_on_fork.h"
 #include "send.h"
 #include "config.h"
 #include "close_on_fork.h"
 #include "send.h"
@@ -449,10 +450,7 @@ repeat:
                        continue;
                if (!senders[i].pre_select)
                        continue;
                        continue;
                if (!senders[i].pre_select)
                        continue;
-               senders[i].pre_select(mmd->audio_format >= 0?
-                       &afl[mmd->audio_format] : NULL,
-                       &max_fileno,
-                       &rfds, &wfds);
+               senders[i].pre_select( &max_fileno, &rfds, &wfds);
        }
        if (selectors[mmd->selector_num].pre_select) {
                ret = selectors[mmd->selector_num].pre_select(&rfds, &wfds);
        }
        if (selectors[mmd->selector_num].pre_select) {
                ret = selectors[mmd->selector_num].pre_select(&rfds, &wfds);
@@ -472,9 +470,7 @@ repeat:
                        continue;
                if (!senders[i].post_select)
                        continue;
                        continue;
                if (!senders[i].post_select)
                        continue;
-               senders[i].post_select(mmd->audio_format >= 0?
-                       &afl[mmd->audio_format] : NULL,
-                       &rfds, &wfds);
+               senders[i].post_select(&rfds, &wfds);
        }
        afs_send_chunk();
        status_refresh();
        }
        afs_send_chunk();
        status_refresh();