extern void ortp_send_init(struct sender *);
extern struct audio_format afl[];
+/* TODO: This is better handled by autoconf */
/** the list of supported audio file selectors */
struct audio_file_selector selectors[] = {
{
valid_fd_012();
sockfd = do_inits(argc, argv);
repeat:
- /* check socket and signal pipe in any case */
FD_ZERO(&rfds);
FD_ZERO(&wfds);
- FD_SET(sockfd, &rfds);
- max_fileno = sockfd;
- FD_SET(signal_pipe, &rfds);
- max_fileno = PARA_MAX(max_fileno, signal_pipe);
-
+ max_fileno = -1;
+ /* check socket and signal pipe in any case */
+ para_fd_set(sockfd, &rfds, &max_fileno);
+ para_fd_set(signal_pipe, &rfds, &max_fileno);
timeout = afs_preselect();
status_refresh();
for (i = 0; senders[i].name; i++) {
&afl[mmd->audio_format] : NULL,
&rfds, &wfds);
}
- if (!ret) {
- afs_send_chunk();
- status_refresh();
- }
+ afs_send_chunk();
+ status_refresh();
if (FD_ISSET(signal_pipe, &rfds)) {
int sig;
sig = para_next_signal();