]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
The long awaited BeOS cleanup, phase 1.1: removed useless ifdef, changed check for...
authormmu_man <mmu_man@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Thu, 18 Jan 2007 17:48:21 +0000 (17:48 +0000)
committermmu_man <mmu_man@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Thu, 18 Jan 2007 17:48:21 +0000 (17:48 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7582 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/udp.c

index 3a309c610a4b1bdceb94676d50d9f445ff50f42b..ee6ad20dcb52d799a22ca7cbac34287c3b085fc9 100644 (file)
@@ -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)
@@ -397,7 +396,6 @@ static int udp_open(URLContext *h, const char *uri, int flags)
                 goto fail;
         }
     }
-#endif
 #endif
 
     if (is_output) {