Commit 2ec9749b authored by Pierre Ynard's avatar Pierre Ynard

ps demux: reset current pts when seeking

This prevented the play time from being updated correctly in the
interface when seeking backwards
parent 9a84bdeb
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment