]> git.sesse.net Git - vlc/blobdiff - modules/access/udp.c
Removes trailing spaces. Removes tabs.
[vlc] / modules / access / udp.c
index 102bef2e95dd95c00bc52740ce610d976e7190d8..c569316ebbec020393415a435dea7d6fd6055c3b 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)
     {
@@ -437,7 +424,7 @@ static inline vlc_bool_t rtp_ChainInsert( access_t *p_access, block_t *p_block )
         p_sys->p_end = p_block;
         return VLC_TRUE;
     }
-    /* walk through the queue from top down since the new packet is in 
+    /* walk through the queue from top down since the new packet is in
     most cases just appended to the end */
 
     for( ;; )
@@ -618,7 +605,7 @@ static block_t *BlockPrebufferRTP( access_t *p_access, block_t *p_block )
             break;
 
         p = BlockParseRTP( p_access, BlockUDP( p_access ) );
-        if( !p && (i_date - i_first) > p_sys->i_rtp_late ) 
+        if( !p && (i_date - i_first) > p_sys->i_rtp_late )
         {
             msg_Err( p_access, "error in RTP prebuffering!" );
             break;