X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=vss.c;h=e21a1ff4fd13a715fc465c2c2758f72961856aa3;hb=926c584394c29354752458b06f7226f0da0dd35e;hp=704c39300e569d9da65fe2a043880e7966c4f8c2;hpb=f41688f647116d0a17513cc86c60cc9729da6502;p=paraslash.git diff --git a/vss.c b/vss.c index 704c3930..e21a1ff4 100644 --- a/vss.c +++ b/vss.c @@ -36,7 +36,33 @@ static struct timeval eof_barrier; static struct timeval autoplay_barrier; extern struct misc_meta_data *mmd; -extern struct sender senders[]; + +extern void dccp_send_init(struct sender *); +extern void http_send_init(struct sender *); +extern void ortp_send_init(struct sender *); + +/** the list of supported senders */ +struct sender senders[] = { + { + .name = "http", + .init = http_send_init, + }, + { + .name = "dccp", + .init = dccp_send_init, + }, +#ifdef HAVE_ORTP + { + .name = "ortp", + .init = ortp_send_init, + }, +#endif + { + .name = NULL, + } +}; + + static char *map; @@ -138,6 +164,7 @@ void vss_init(void) } free(hn); free(home); + mmd->sender_cmd_data.cmd_num = -1; if (conf.autoplay_given) { struct timeval now, tmp; mmd->vss_status_flags |= VSS_PLAYING;