From 5c361eff9de5dd5f6336cdf7841d28e160603fb7 Mon Sep 17 00:00:00 2001 From: nicodvb Date: Sat, 11 Nov 2006 11:53:32 +0000 Subject: [PATCH] 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 --- libmpdemux/demuxer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libmpdemux/demuxer.c b/libmpdemux/demuxer.c index e39099a30e..045925e13f 100644 --- a/libmpdemux/demuxer.c +++ b/libmpdemux/demuxer.c @@ -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);