Commit 487f2400 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
(cherry picked from commit 2ec9749b801a38e25a7e0ba516b403d102752a71)
Signed-off-by: default avatarPierre Ynard <linkfanel@yahoo.fr>
parent c55ecd0a
...@@ -514,6 +514,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) ...@@ -514,6 +514,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
if( !i_now ) if( !i_now )
return i64 ? VLC_EGENERIC : VLC_SUCCESS; return i64 ? VLC_EGENERIC : VLC_SUCCESS;
p_sys->i_current_pts = 0;
i_pos *= (float)i64 / (float)i_now; i_pos *= (float)i64 / (float)i_now;
stream_Seek( p_demux->s, i_pos ); stream_Seek( p_demux->s, i_pos );
return VLC_SUCCESS; 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