diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-06-14 22:12:06 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-06-14 22:12:06 +0000 |
commit | b74779d89af2ebd0925f8df02e8183f9d324751f (patch) | |
tree | d1c104300e8bea6cf3584f685acef4c95d393ef0 /libmpdemux | |
parent | f1871d576689273847e084e90bd1baa20d68f243 (diff) | |
download | mpv-b74779d89af2ebd0925f8df02e8183f9d324751f.tar.bz2 mpv-b74779d89af2ebd0925f8df02e8183f9d324751f.tar.xz |
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
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_mpg.c | 5 |
1 files changed, 5 insertions, 0 deletions
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... |