From b74779d89af2ebd0925f8df02e8183f9d324751f Mon Sep 17 00:00:00 2001 From: nicodvb Date: Wed, 14 Jun 2006 22:12:06 +0000 Subject: [PATCH] workaround: at every read update demux->movi_end with stream->end_pos; needed to show the progress bar when playing dvdnav streams git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18716 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_mpg.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libmpdemux/demux_mpg.c b/libmpdemux/demux_mpg.c index 0d91dad988..166dc34154 100644 --- a/libmpdemux/demux_mpg.c +++ b/libmpdemux/demux_mpg.c @@ -598,6 +598,11 @@ int ret=0; // 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...