[vlc-devel] commit: UDP: remove unneeded DCCP support ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat Jun 7 17:00:55 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Jun 7 17:24:00 2008 +0300| [c26261bf473f3ffdb8777132b1bf82817c3ece84]
UDP: remove unneeded DCCP support
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c26261bf473f3ffdb8777132b1bf82817c3ece84
---
modules/access/udp.c | 27 ---------------------------
1 files changed, 0 insertions(+), 27 deletions(-)
diff --git a/modules/access/udp.c b/modules/access/udp.c
index 5d15790..401acfa 100644
--- a/modules/access/udp.c
+++ b/modules/access/udp.c
@@ -41,16 +41,6 @@
#include <vlc_access.h>
#include <vlc_network.h>
-#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 )
More information about the vlc-devel
mailing list