[MPlayer-cvslog] CVS: main mplayer.c,1.820,1.821
Reimar Döffinger CVS
syncmail at mplayerhq.hu
Tue Dec 21 13:26:01 CET 2004
CVS change done by Reimar Döffinger CVS
Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv13575
Modified Files:
mplayer.c
Log Message:
Use demuxer_get_percent_pos for the OSD position bar
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.820
retrieving revision 1.821
diff -u -r1.820 -r1.821
--- mplayer.c 19 Dec 2004 16:59:39 -0000 1.820
+++ mplayer.c 21 Dec 2004 12:25:58 -0000 1.821
@@ -3754,11 +3754,10 @@
#else
if( 1 ) { // Let the compiler optimize this out
#endif
- int len=((demuxer->movi_end-demuxer->movi_start)>>8);
- if (len>0 && sh_video){
+ if (sh_video) {
osd_visible=sh_video->fps; // 1 sec
vo_osd_progbar_type=0;
- vo_osd_progbar_value=(demuxer->filepos-demuxer->movi_start)/len;
+ vo_osd_progbar_value=demuxer_get_percent_pos(demuxer) * 256 / 100;
vo_osd_changed(OSDTYPE_PROGBAR);
}
}
More information about the MPlayer-cvslog
mailing list