[vlc-commits] commit: ps demux: reset current pts when seeking (Pierre Ynard )
git at videolan.org
git at videolan.org
Thu May 20 20:02:18 CEST 2010
vlc/vlc-1.1 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Thu May 20 19:51:45 2010 +0200| [487f2400d632478cf5ac1031a128e73c9a5940b1] | committer: Pierre Ynard
ps demux: reset current pts when seeking
This prevented the play time from being updated correctly in the
interface when seeking backwards
(cherry picked from commit 2ec9749b801a38e25a7e0ba516b403d102752a71)
Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=487f2400d632478cf5ac1031a128e73c9a5940b1
---
modules/demux/ps.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/demux/ps.c b/modules/demux/ps.c
index 761e99f..ffab1e7 100644
--- a/modules/demux/ps.c
+++ b/modules/demux/ps.c
@@ -514,6 +514,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
if( !i_now )
return i64 ? VLC_EGENERIC : VLC_SUCCESS;
+ p_sys->i_current_pts = 0;
i_pos *= (float)i64 / (float)i_now;
stream_Seek( p_demux->s, i_pos );
return VLC_SUCCESS;
More information about the vlc-commits
mailing list