--- livedotcom.cpp.orig 2005-12-25 01:41:45.973273600 +0100 +++ livedotcom.cpp 2005-12-25 13:33:32.642448000 +0100 @@ -68,6 +68,10 @@ "dialect of RTSP. When you set this parameter, VLC will try this dialect "\ "for communication. In this mode you cannot talk to normal RTSP servers." ) +#define PORT_TEXTE N_("UDP Port (beta - crazy)") +#define PORT_LONGTEXTE N_( \ + "Allows you to specify the port used to receive the stream." ) + vlc_module_begin(); set_description( _("RTP/RTSP/SDP demuxer (using Live.com)" ) ); set_capability( "demux2", 50 ); @@ -90,6 +94,7 @@ CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE ); add_bool( "rtsp-kasenna", VLC_FALSE, NULL, KASENNA_TEXT, KASENNA_LONGTEXT, VLC_TRUE ); + add_integer( "rtsp-port", 31337, NULL, PORT_TEXTE, PORT_LONGTEXTE, VLC_TRUE); vlc_module_end(); /* TODO: @@ -200,6 +205,8 @@ int i_sdp_max; uint8_t *p_sdp; + int64_t clientport; + if( p_demux->s ) { /* See if it looks like a SDP @@ -353,6 +360,9 @@ else continue; +clientport = (int64_t)var_CreateGetInteger( p_demux, "rtsp-port" ); +sub->setClientPortNum(clientport); + if( !strcmp( sub->codecName(), "X-ASF-PF" ) ) bInit = sub->initiate( 4 ); /* Constant ? */ else