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
This commit is contained in:
1 parent
f1871d5766
commit
b74779d89a
1 file changed
+5
@@ -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...
|
||||
|
||||
Reference in new issue
Block a user