From c26261bf473f3ffdb8777132b1bf82817c3ece84 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sat, 7 Jun 2008 17:24:00 +0300 Subject: [PATCH] UDP: remove unneeded DCCP support --- modules/access/udp.c | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/modules/access/udp.c b/modules/access/udp.c index 5d15790335..401acfaa6d 100644 --- a/modules/access/udp.c +++ b/modules/access/udp.c @@ -41,16 +41,6 @@ #include #include -#ifndef SOCK_DCCP /* provisional API */ -# ifdef __linux__ -# define SOCK_DCCP 6 -# endif -#endif - -#ifndef IPPROTO_DCCP -# define IPPROTO_DCCP 33 /* IANA */ -#endif - #define MTU 65535 /***************************************************************************** @@ -86,7 +76,6 @@ vlc_module_begin(); add_shortcut( "udp4" ); add_shortcut( "udp6" ); add_shortcut( "rtptcp" ); /* tcp name is already taken */ - add_shortcut( "dccp" ); set_callbacks( Open, Close ); vlc_module_end(); @@ -155,9 +144,6 @@ static int Open( vlc_object_t *p_this ) else if (strcmp (p_access->psz_access, "rtptcp") == 0) proto = IPPROTO_TCP; - else - if (strcmp (p_access->psz_access, "dccp") == 0) - proto = IPPROTO_DCCP; } i_bind_port = var_CreateGetInteger( p_access, "server-port" ); @@ -218,19 +204,6 @@ static int Open( vlc_object_t *p_this ) p_access->pf_block = BlockRTP; p_sys->b_comedia = p_sys->b_framed_rtp = true; break; - - case IPPROTO_DCCP: -#ifdef SOCK_DCCP - var_Create( p_access, "dccp-service", VLC_VAR_STRING ); - var_SetString( p_access, "dccp-service", "RTPV" ); - p_sys->fd = net_Connect( p_access, psz_server_addr, i_server_port, - SOCK_DCCP, IPPROTO_DCCP ); -#else - p_sys->fd = -1; - msg_Err( p_access, "DCCP support not compiled-in!" ); -#endif - p_sys->b_comedia = true; - break; } free (psz_name); if( p_sys->fd == -1 ) -- 2.39.5