comparison libmpdemux/demux_mpg.c @ 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 dbd99e1435bb
children 411183f41efb
comparison
equal deleted inserted replaced
18712:cb7da1894b00 18713:c6c78e77c857
596 int ret=0; 596 int ret=0;
597 597
598 // System stream 598 // System stream
599 do{ 599 do{
600 demux->filepos=stream_tell(demux->stream); 600 demux->filepos=stream_tell(demux->stream);
601 #if 1
602 //lame workaround: this is needed to show the progress bar when playing dvdnav://
603 //(ths poor guy doesn't know teh length of the stream at startup)
604 demux->movi_end = demux->stream->end_pos;
605 #endif
601 head=stream_read_dword(demux->stream); 606 head=stream_read_dword(demux->stream);
602 if((head&0xFFFFFF00)!=0x100){ 607 if((head&0xFFFFFF00)!=0x100){
603 // sync... 608 // sync...
604 demux->filepos-=skipped; 609 demux->filepos-=skipped;
605 while(1){ 610 while(1){