X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fdemux%2Favi%2Favi.c;h=eb7cbfbb86f9a7264580378379ee070fd2b6bd0c;hb=426932330da5ef5182008c6331fe504870c57ce8;hp=bc84ec8a37509d0ea5ec18b5ab85209926e30c86;hpb=4d4f76fd38af44ee1bd99bb221c8201b4569c1f9;p=vlc diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c index bc84ec8a37..eb7cbfbb86 100644 --- a/modules/demux/avi/avi.c +++ b/modules/demux/avi/avi.c @@ -1381,6 +1381,7 @@ static int Seek( demux_t *p_demux, mtime_t i_date, int i_percent ) AVI_TrackSeek( p_demux, i_stream, i_date ); } + es_out_Control( p_demux->out, ES_OUT_SET_NEXT_DISPLAY_TIME, i_date ); p_sys->i_time = i_date; msg_Dbg( p_demux, "seek: %"PRId64" seconds", p_sys->i_time /1000000 ); return VLC_SUCCESS; @@ -1811,8 +1812,6 @@ static int AVI_TrackSeek( demux_t *p_demux, return VLC_EGENERIC; } } - if( p_stream->p_es ) - es_out_Control( p_demux->out, ES_OUT_SET_NEXT_DISPLAY_TIME, p_stream->p_es, i_date ); } #if 0 else