]> git.sesse.net Git - vlc/commitdiff
* modules/demux/livedotcom.cpp: New --rtp-client-port option to help
authorChristophe Massiot <massiot@videolan.org>
Thu, 29 Dec 2005 13:08:52 +0000 (13:08 +0000)
committerChristophe Massiot <massiot@videolan.org>
Thu, 29 Dec 2005 13:08:52 +0000 (13:08 +0000)
   users of firewalls.

modules/demux/livedotcom.cpp

index 7ee94a7c8df052b9fdc956e29d53b602d20707f4..15342a4ab52564626c626e0541a20b6acfbe0e43 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
- * live.cpp : live.com support.
+ * livedotcom.cpp : live.com support.
  *****************************************************************************
- * Copyright (C) 2003-2004 the VideoLAN team
+ * Copyright (C) 2003-2005 the VideoLAN team
  * $Id$
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
@@ -86,6 +86,9 @@ vlc_module_begin();
         add_bool( "rtsp-tcp", 0, NULL,
                   N_("Use RTP over RTSP (TCP)"),
                   N_("Use RTP over RTSP (TCP)"), VLC_TRUE );
+        add_integer( "rtp-client-port", -1, NULL,
+                  N_("Client port"),
+                  N_("Port to use for the RTP source of the session"), VLC_TRUE );
 #if LIVEMEDIA_LIBRARY_VERSION_INT > 1130457500
         add_bool( "rtsp-http", 0, NULL,
                   N_("Tunnel RTSP and RTP over HTTP"),
@@ -361,6 +364,11 @@ static int  Open ( vlc_object_t *p_this )
     {
         unsigned int i_buffer = 0;
         Boolean bInit;
+        int i_client_port;
+
+        i_client_port = var_CreateGetInteger( p_demux, "rtp-client-port" );
+        if( i_client_port != -1 )
+            sub->setClientPortNum( i_client_port );
 
         /* Value taken from mplayer */
         if( !strcmp( sub->mediumName(), "audio" ) )