Remove ds_fill_buffer calls from demux_resync, they cause issues at least with

the ASF demuxer (seek seems to end up right after the keyframe?) and seem to have
no purpose anyway.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30438 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2010-01-26 21:08:01 +00:00
parent b1f3c590c7
commit cc95355a0a
1 changed files with 5 additions and 2 deletions

View File

@ -1201,17 +1201,20 @@ demuxer_t *demux_open(stream_t *vs, int file_format, int audio_id,
return res;
}
/**
* Do necessary reinitialization after e.g. a seek.
* Do _not_ call ds_fill_buffer between the seek and this, it breaks at least
* seeking with ASF demuxer.
*/
static void demux_resync(demuxer_t *demuxer)
{
sh_video_t *sh_video = demuxer->video->sh;
sh_audio_t *sh_audio = demuxer->audio->sh;
demux_control(demuxer, DEMUXER_CTRL_RESYNC, NULL);
if (sh_video) {
ds_fill_buffer(demuxer->video);
resync_video_stream(sh_video);
}
if (sh_audio) {
ds_fill_buffer(demuxer->audio);
resync_audio_stream(sh_audio);
}
}