Commit 2067333a authored by Laurent Aimar's avatar Laurent Aimar

Updated the length in rtsp on PLAY request only if defined.

It will fix interoperability with live555 server.
parent 6546505c
......@@ -1078,6 +1078,7 @@ static int Play( demux_t *p_demux )
/* Retrieve the starttime if possible */
p_sys->i_npt_start = p_sys->ms->playStartTime();
if( p_sys->ms->playEndTime() > 0 )
p_sys->i_npt_length = p_sys->ms->playEndTime();
msg_Dbg( p_demux, "play start: %f stop:%f", p_sys->i_npt_start, p_sys->i_npt_length );
......@@ -1286,6 +1287,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
p_sys->i_npt = p_sys->i_npt_start = p_sys->ms->playStartTime();
/* Retrieve the duration if possible */
if( p_sys->ms->playEndTime() > 0 )
p_sys->i_npt_length = p_sys->ms->playEndTime();
msg_Dbg( p_demux, "seek start: %f stop:%f", p_sys->i_npt_start, p_sys->i_npt_length );
......@@ -1421,6 +1423,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
p_sys->i_npt_start = p_sys->ms->playStartTime();
/* Retrieve the duration if possible */
if( p_sys->ms->playEndTime() )
p_sys->i_npt_length = p_sys->ms->playEndTime();
msg_Dbg( p_demux, "pause start: %f stop:%f", p_sys->i_npt_start, p_sys->i_npt_length );
......
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