X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=server.c;h=1805c92b62de84d7131bf71c905dc3d8d23a0d93;hp=56162735a9030df40863cfb89a81894206ed49da;hb=899a19c03fc05f6fd98687e3eaa86841a4633a10;hpb=e921be422a216b87e3e6812f16b27c9a6927099d diff --git a/server.c b/server.c index 56162735..1805c92b 100644 --- a/server.c +++ b/server.c @@ -33,6 +33,7 @@ #include "db.h" #include "server.h" #include "afs.h" +#include "afh.h" /* FIXME */ #include "config.h" #include "close_on_fork.h" #include "send.h" @@ -449,10 +450,7 @@ repeat: 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); @@ -472,9 +470,7 @@ repeat: 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();