Commit 6c29937d authored by Jean-Paul Saman's avatar Jean-Paul Saman

live555: fix seeking

According to RFC 2326 a PAUSE command should be issued when requesting an immediate seek to a new PLAY position.
parent 20e97a23
...@@ -1268,7 +1268,8 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) ...@@ -1268,7 +1268,8 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
time = f * (double)p_sys->i_npt_length; /* in second */ time = f * (double)p_sys->i_npt_length; /* in second */
} }
if( !p_sys->rtsp->playMediaSession( *p_sys->ms, time, -1, 1 ) ) if( !p_sys->rtsp->pauseMediaSession( *p_sys->ms ) ||
!p_sys->rtsp->playMediaSession( *p_sys->ms, time, -1, 1 ) )
{ {
msg_Err( p_demux, "PLAY failed %s", msg_Err( p_demux, "PLAY failed %s",
p_sys->env->getResultMsg() ); p_sys->env->getResultMsg() );
......
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