Commit 1752e105 authored by Christophe Massiot's avatar Christophe Massiot

* modules/demux/livedotcom.cpp: New --rtp-client-port option to help

   users of firewalls.
parent d87bb094
/***************************************************************************** /*****************************************************************************
* 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$ * $Id$
* *
* Authors: Laurent Aimar <fenrir@via.ecp.fr> * Authors: Laurent Aimar <fenrir@via.ecp.fr>
...@@ -86,6 +86,9 @@ vlc_module_begin(); ...@@ -86,6 +86,9 @@ vlc_module_begin();
add_bool( "rtsp-tcp", 0, NULL, add_bool( "rtsp-tcp", 0, NULL,
N_("Use RTP over RTSP (TCP)"), N_("Use RTP over RTSP (TCP)"),
N_("Use RTP over RTSP (TCP)"), VLC_TRUE ); 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 #if LIVEMEDIA_LIBRARY_VERSION_INT > 1130457500
add_bool( "rtsp-http", 0, NULL, add_bool( "rtsp-http", 0, NULL,
N_("Tunnel RTSP and RTP over HTTP"), N_("Tunnel RTSP and RTP over HTTP"),
...@@ -361,6 +364,11 @@ static int Open ( vlc_object_t *p_this ) ...@@ -361,6 +364,11 @@ static int Open ( vlc_object_t *p_this )
{ {
unsigned int i_buffer = 0; unsigned int i_buffer = 0;
Boolean bInit; 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 */ /* Value taken from mplayer */
if( !strcmp( sub->mediumName(), "audio" ) ) if( !strcmp( sub->mediumName(), "audio" ) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment