]> git.sesse.net Git - vlc/blobdiff - modules/access/udp.c
access_udp: remove UDP-Lite support
[vlc] / modules / access / udp.c
index 24a4731e3eaceba81c6e1ad972c193bb2041726f..5d15790335727005338d06c5e18113681824f7f7 100644 (file)
@@ -36,7 +36,7 @@
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
 #include <vlc_plugin.h>
 #include <vlc_access.h>
 #include <vlc_network.h>
 # define IPPROTO_DCCP 33 /* IANA */
 #endif
 
-#ifndef IPPROTO_UDPLITE
-# define IPPROTO_UDPLITE 136 /* from IANA */
-#endif
-
 #define MTU 65535
 
 /*****************************************************************************
@@ -74,8 +70,8 @@ static int  Open ( vlc_object_t * );
 static void Close( vlc_object_t * );
 
 vlc_module_begin();
-    set_shortname( _("UDP/RTP" ) );
-    set_description( _("UDP/RTP input") );
+    set_shortname( N_("UDP/RTP" ) );
+    set_description( N_("UDP/RTP input") );
     set_category( CAT_INPUT );
     set_subcategory( SUBCAT_INPUT_ACCESS );
 
@@ -89,10 +85,6 @@ vlc_module_begin();
     add_shortcut( "udpstream" );
     add_shortcut( "udp4" );
     add_shortcut( "udp6" );
-    add_shortcut( "rtp" );
-    add_shortcut( "rtp4" );
-    add_shortcut( "rtp6" );
-    add_shortcut( "udplite" );
     add_shortcut( "rtptcp" ); /* tcp name is already taken */
     add_shortcut( "dccp" );
 
@@ -158,9 +150,6 @@ static int Open( vlc_object_t *p_this )
                 break;
         }
 
-        if (strcmp (p_access->psz_access, "udplite") == 0)
-            proto = IPPROTO_UDPLITE;
-        else
         if (strncmp (p_access->psz_access, "udp", 3 ) == 0 )
             p_access->pf_block = BlockChoose;
         else
@@ -219,7 +208,6 @@ static int Open( vlc_object_t *p_this )
     switch (proto)
     {
         case IPPROTO_UDP:
-        case IPPROTO_UDPLITE:
             p_sys->fd = net_OpenDgram( p_access, psz_bind_addr, i_bind_port,
                                        psz_server_addr, i_server_port, fam,
                                        proto );