Commit e60b15c3 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* modules/demux/livedotcom.cpp: - ts2 -> ts

  - take into account !rtpSource (for UDP support)
parent da1822b6
...@@ -158,8 +158,6 @@ static int AccessOpen( vlc_object_t *p_this ) ...@@ -158,8 +158,6 @@ static int AccessOpen( vlc_object_t *p_this )
p_sys->i_sdp = strlen( p_sys->p_sdp ); p_sys->i_sdp = strlen( p_sys->p_sdp );
p_sys->i_pos = 0; p_sys->i_pos = 0;
//fprintf( stderr, "sdp=%s\n", p_sys->p_sdp );
delete env; delete env;
delete scheduler; delete scheduler;
...@@ -456,12 +454,15 @@ static int DemuxOpen ( vlc_object_t *p_this ) ...@@ -456,12 +454,15 @@ static int DemuxOpen ( vlc_object_t *p_this )
} }
else else
{ {
int fd = sub->rtpSource()->RTPgs()->socketNum(); if( sub->rtpSource() )
{
int fd = sub->rtpSource()->RTPgs()->socketNum();
/* Increase the buffer size */
increaseReceiveBufferTo( *p_sys->env, fd, i_buffer );
}
msg_Dbg( p_demux, "RTP subsession '%s/%s'", sub->mediumName(), sub->codecName() ); msg_Dbg( p_demux, "RTP subsession '%s/%s'", sub->mediumName(), sub->codecName() );
/* Increase the buffer size */
increaseReceiveBufferTo( *p_sys->env, fd, i_buffer );
/* Issue the SETUP */ /* Issue the SETUP */
if( p_sys->rtsp ) if( p_sys->rtsp )
{ {
...@@ -612,12 +613,12 @@ static int DemuxOpen ( vlc_object_t *p_this ) ...@@ -612,12 +613,12 @@ static int DemuxOpen ( vlc_object_t *p_this )
else if( !strcmp( sub->codecName(), "MP2T" ) ) else if( !strcmp( sub->codecName(), "MP2T" ) )
{ {
tk->b_muxed = VLC_TRUE; tk->b_muxed = VLC_TRUE;
tk->p_out_muxed = stream_DemuxNew( p_demux, "ts2", p_demux->out ); tk->p_out_muxed = stream_DemuxNew( p_demux, "ts", p_demux->out );
} }
else if( !strcmp( sub->codecName(), "MP2P" ) || !strcmp( sub->codecName(), "MP1S" ) ) else if( !strcmp( sub->codecName(), "MP2P" ) || !strcmp( sub->codecName(), "MP1S" ) )
{ {
tk->b_muxed = VLC_TRUE; tk->b_muxed = VLC_TRUE;
tk->p_out_muxed = stream_DemuxNew( p_demux, "ps2", p_demux->out ); tk->p_out_muxed = stream_DemuxNew( p_demux, "ps", p_demux->out );
} }
} }
......
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