]> git.sesse.net Git - vlc/commitdiff
Use net_SetCSCov
authorRémi Denis-Courmont <rem@videolan.org>
Sun, 9 Sep 2007 20:09:34 +0000 (20:09 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sun, 9 Sep 2007 20:09:34 +0000 (20:09 +0000)
modules/access/udp.c

index 102bef2e95dd95c00bc52740ce610d976e7190d8..a1f5b80ed9107175c9ca0e41ebd81e921c8ddb1a 100644 (file)
 #include <vlc_access.h>
 #include <vlc_network.h>
 
-/* Big pile of stuff missing form glibc 2.5 */
-#if defined (HAVE_NETINET_UDPLITE_H)
-# include <netinet/udplite.h>
-#elif defined (__linux__)
-# define UDPLITE_SEND_CSCOV     10
-# define UDPLITE_RECV_CSCOV     11
-#endif
-
 #ifndef SOCK_DCCP /* provisional API */
 # ifdef __linux__
 #  define SOCK_DCCP 6
@@ -251,12 +243,7 @@ static int Open( vlc_object_t *p_this )
 
     shutdown( p_sys->fd, SHUT_WR );
 
-#ifdef UDPLITE_RECV_CSCOV
-    if (proto == IPPROTO_UDPLITE)
-        /* UDP header: 8 bytes + RTP header: 12 bytes (or more) */
-        setsockopt (p_sys->fd, SOL_UDPLITE, UDPLITE_RECV_CSCOV,
-                    &(int){ 20 }, sizeof (int));
-#endif
+    net_SetCSCov (p_sys->fd, -1, 12);
 
     if (p_sys->b_framed_rtp)
     {