Mercurial > mplayer.hg
changeset 20839:950ea3171afc
in demux_seek() if STREAM_CTRL_SEEK_TO_CHAPTER suceeds call DEMUXER_CTRL_RESYNC to notify the demuxer of the change
author | nicodvb |
---|---|
date | Sat, 11 Nov 2006 11:53:32 +0000 |
parents | 56f00c5e8a7c |
children | 70b6f88bd23c |
files | libmpdemux/demuxer.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demuxer.c Sat Nov 11 11:17:02 2006 +0000 +++ b/libmpdemux/demuxer.c Sat Nov 11 11:53:32 2006 +0000 @@ -1110,6 +1110,8 @@ 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);