in demux_seek() if STREAM_CTRL_SEEK_TO_CHAPTER suceeds call DEMUXER_CTRL_RESYNC to notify the demuxer of the change

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20855 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nicodvb 2006-11-11 11:53:32 +00:00
parent bf06ac79f0
commit 5c361eff9d
1 changed files with 2 additions and 0 deletions

View File

@ -1110,6 +1110,8 @@ int demuxer_seek_chapter(demuxer_t *demuxer, int chapter, int mode, float *seek_
ds_free_packs(demuxer->sub);
ris = stream_control(demuxer->stream, STREAM_CTRL_SEEK_TO_CHAPTER, &chapter);
if(ris != STREAM_UNSUPORTED)
demux_control(demuxer, DEMUXER_CTRL_RESYNC, NULL);
if(sh_video) {
ds_fill_buffer(demuxer->video);
resync_video_stream(sh_video);