From 2ec9749b801a38e25a7e0ba516b403d102752a71 Mon Sep 17 00:00:00 2001 From: Pierre Ynard Date: Thu, 20 May 2010 19:51:45 +0200 Subject: [PATCH] ps demux: reset current pts when seeking This prevented the play time from being updated correctly in the interface when seeking backwards --- modules/demux/ps.c | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/demux/ps.c b/modules/demux/ps.c index 761e99f897..ffab1e7e0c 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; -- 2.39.2