]> git.sesse.net Git - vlc/commitdiff
ps demux: reset current pts when seeking
authorPierre Ynard <linkfanel@yahoo.fr>
Thu, 20 May 2010 17:51:45 +0000 (19:51 +0200)
committerPierre Ynard <linkfanel@yahoo.fr>
Thu, 20 May 2010 17:51:45 +0000 (19:51 +0200)
This prevented the play time from being updated correctly in the
interface when seeking backwards

modules/demux/ps.c

index 761e99f897a315a7d1c9151cdd68960e22d6b7ca..ffab1e7e0c0a498768c21d178cbf453f4d407447 100644 (file)
@@ -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;