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 )
p_sys->i_sdp = strlen( p_sys->p_sdp );
p_sys->i_pos = 0;
//fprintf( stderr, "sdp=%s\n", p_sys->p_sdp );
delete env;
delete scheduler;
......@@ -455,13 +453,16 @@ static int DemuxOpen ( vlc_object_t *p_this )
msg_Warn( p_demux, "RTP subsession '%s/%s' failed(%s)", sub->mediumName(), sub->codecName(), p_sys->env->getResultMsg() );
}
else
{
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() );
/* Increase the buffer size */
increaseReceiveBufferTo( *p_sys->env, fd, i_buffer );
/* Issue the SETUP */
if( p_sys->rtsp )
{
......@@ -612,12 +613,12 @@ static int DemuxOpen ( vlc_object_t *p_this )
else if( !strcmp( sub->codecName(), "MP2T" ) )
{
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" ) )
{
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