From: Pierre Ynard Date: Thu, 20 May 2010 17:51:45 +0000 (+0200) Subject: ps demux: reset current pts when seeking X-Git-Tag: 1.2.0-pre1~6583 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=2ec9749b801a38e25a7e0ba516b403d102752a71;p=vlc ps demux: reset current pts when seeking This prevented the play time from being updated correctly in the interface when seeking backwards --- 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;