[vlc-devel] commit: live555: fix seeking (Jean-Paul Saman )
git version control
git at videolan.org
Wed Jul 22 12:03:18 CEST 2009
vlc | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Tue Jul 21 11:04:38 2009 +0200| [6c29937d84b881f673448260b2f770e35febad97] | committer: 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.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6c29937d84b881f673448260b2f770e35febad97
---
modules/demux/live555.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/demux/live555.cpp b/modules/demux/live555.cpp
index 7a1cd66..ca302f4 100644
--- a/modules/demux/live555.cpp
+++ b/modules/demux/live555.cpp
@@ -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 */
}
- 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",
p_sys->env->getResultMsg() );
More information about the vlc-devel
mailing list