# HG changeset patch # User nicodvb # Date 1150323126 0 # Node ID c6c78e77c857929c02285bd487ae3a7115e89208 # Parent cb7da1894b00c1a2ffe6272cbc1d9c379a7b9102 workaround: at every read update demux->movi_end with stream->end_pos; needed to show the progress bar when playing dvdnav streams diff -r cb7da1894b00 -r c6c78e77c857 libmpdemux/demux_mpg.c --- 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...