changeset 18713:c6c78e77c857

workaround: at every read update demux->movi_end with stream->end_pos; needed to show the progress bar when playing dvdnav streams
author nicodvb
date Wed, 14 Jun 2006 22:12:06 +0000
parents cb7da1894b00
children 8fc996a3b4e1
files libmpdemux/demux_mpg.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mpg.c	Wed Jun 14 21:58:17 2006 +0000
+++ b/libmpdemux/demux_mpg.c	Wed Jun 14 22:12:06 2006 +0000
@@ -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...