[MPlayer-cvslog] r18716 - trunk/libmpdemux/demux_mpg.c

nicodvb subversion at mplayerhq.hu
Thu Jun 15 00:12:06 CEST 2006


Author: nicodvb
Date: Thu Jun 15 00:12:06 2006
New Revision: 18716

Modified:
   trunk/libmpdemux/demux_mpg.c

Log:
workaround: at every read update demux->movi_end with stream->end_pos; needed to show the progress bar when playing dvdnav streams

Modified: trunk/libmpdemux/demux_mpg.c
==============================================================================
--- trunk/libmpdemux/demux_mpg.c	(original)
+++ trunk/libmpdemux/demux_mpg.c	Thu Jun 15 00:12:06 2006
@@ -598,6 +598,11 @@
 // System stream
 do{
   demux->filepos=stream_tell(demux->stream);
+#if 1
+  //lame workaround: this is needed to show the progress bar when playing dvdnav://
+  //(ths poor guy doesn't know teh length of the stream at startup)
+  demux->movi_end = demux->stream->end_pos;
+#endif
   head=stream_read_dword(demux->stream);
   if((head&0xFFFFFF00)!=0x100){
    // sync...



More information about the MPlayer-cvslog mailing list