[vlc-commits] demux: avi: set PCR on seek
Francois Cartegnie
git at videolan.org
Sun Nov 2 15:13:05 CET 2014
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Nov 2 15:12:22 2014 +0100| [3d95e735d7135abcd7c031a87f6b43ecff0ea3bd] | committer: Francois Cartegnie
demux: avi: set PCR on seek
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3d95e735d7135abcd7c031a87f6b43ecff0ea3bd
---
modules/demux/avi/avi.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 2d16936..53f3590 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -1533,8 +1533,9 @@ static int Seek( demux_t *p_demux, mtime_t i_date, int i_percent )
p_stream->b_eof = AVI_TrackSeek( p_demux, i_stream, i_date ) != 0;
}
- es_out_Control( p_demux->out, ES_OUT_SET_NEXT_DISPLAY_TIME, i_date );
p_sys->i_time = i_date;
+ es_out_Control( p_demux->out, ES_OUT_SET_PCR, VLC_TS_0 + p_sys->i_time );
+ es_out_Control( p_demux->out, ES_OUT_SET_NEXT_DISPLAY_TIME, VLC_TS_0 + p_sys->i_time );
msg_Dbg( p_demux, "seek: %"PRId64" seconds", p_sys->i_time /CLOCK_FREQ );
return VLC_SUCCESS;
More information about the vlc-commits
mailing list