diff options
author | François Revol <revol@free.fr> | 2007-01-18 17:48:21 +0000 |
---|---|---|
committer | François Revol <revol@free.fr> | 2007-01-18 17:48:21 +0000 |
commit | c9c1a8e794d84acc0e72987c4ae06f6847bc2cab (patch) | |
tree | afcd7f4b04cf0c4f060288b2c083b35ff1db33b3 /libavformat/udp.c | |
parent | e9d511dc7eb09aeac21efa74fb699b9be3d37fde (diff) | |
download | ffmpeg-streaming-c9c1a8e794d84acc0e72987c4ae06f6847bc2cab.zip ffmpeg-streaming-c9c1a8e794d84acc0e72987c4ae06f6847bc2cab.tar.gz |
The long awaited BeOS cleanup, phase 1.1: removed useless ifdef, changed check for net_server to IP_MULTICAST_TTL.
Originally committed as revision 7582 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/udp.c')
-rw-r--r-- | libavformat/udp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/udp.c b/libavformat/udp.c index 3a309c6..ee6ad20 100644 --- a/libavformat/udp.c +++ b/libavformat/udp.c @@ -359,7 +359,7 @@ static int udp_open(URLContext *h, const char *uri, int flags) getsockname(udp_fd, (struct sockaddr *)&my_addr1, &len); s->local_port = ntohs(my_addr1.sin_port); -#ifndef CONFIG_BEOS_NETSERVER +#ifdef IP_MULTICAST_TTL if (s->is_multicast) { if (h->flags & URL_WRONLY) { /* output */ @@ -387,7 +387,6 @@ static int udp_open(URLContext *h, const char *uri, int flags) udp_fd = udp_ipv6_set_local(h); if (udp_fd < 0) goto fail; -#ifndef CONFIG_BEOS_NETSERVER if (s->is_multicast) { if (h->flags & URL_WRONLY) { if (udp_ipv6_set_multicast_ttl(udp_fd, s->ttl, (struct sockaddr *)&s->dest_addr) < 0) @@ -398,7 +397,6 @@ static int udp_open(URLContext *h, const char *uri, int flags) } } #endif -#endif if (is_output) { /* limit the tx buf size to limit latency */ |