[vlc-devel] commit: live555: fix seeking (Jean-Paul Saman )
git version control
git at videolan.org
Wed Jul 22 17:56:30 CEST 2009
vlc | branch: 1.0-bugfix | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Tue Jul 21 11:04:38 2009 +0200| [b4d2d618857e8c35ef0cab5af9d7cfff9e644d37] | committer: Jean-Baptiste Kempf
live555: fix seeking
According to RFC 2326 a PAUSE command should be issued when requesting an immediate seek to a new PLAY position.
(cherry picked from commit 6c29937d84b881f673448260b2f770e35febad97)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b4d2d618857e8c35ef0cab5af9d7cfff9e644d37
---
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 a918ec5..f8ef6d1 100644
--- a/modules/demux/live555.cpp
+++ b/modules/demux/live555.cpp
@@ -1284,7 +1284,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