[MPlayer-cvslog] r19444 - trunk/libmpdemux/demuxer.c
nicodvb
subversion at mplayerhq.hu
Fri Aug 18 21:03:31 CEST 2006
Author: nicodvb
Date: Fri Aug 18 21:03:31 2006
New Revision: 19444
Modified:
trunk/libmpdemux/demuxer.c
Log:
support relative seeking in the stream-driven case
Modified: trunk/libmpdemux/demuxer.c
==============================================================================
--- trunk/libmpdemux/demuxer.c (original)
+++ trunk/libmpdemux/demuxer.c Fri Aug 18 21:03:31 2006
@@ -1063,6 +1063,12 @@
sh_audio_t *sh_audio = demuxer->audio->sh;
if (!demuxer->num_chapters || !demuxer->chapters) {
+ if(!mode) {
+ ris = stream_control(demuxer->stream, STREAM_CTRL_GET_CURRENT_CHAPTER, ¤t);
+ if(ris == STREAM_UNSUPORTED && !mode) return -1;
+ chapter += current;
+ }
+
if(demuxer->video->sh)
ds_free_packs(demuxer->video);
More information about the MPlayer-cvslog
mailing list