Mercurial > mplayer.hg
comparison mplayer.c @ 14197:2ae224195625
Use demuxer_get_percent_pos for the OSD position bar
author | reimar |
---|---|
date | Tue, 21 Dec 2004 12:25:59 +0000 |
parents | 0180a7f96197 |
children | ad4dd100472e |
comparison
equal
deleted
inserted
replaced
14196:8d870bffcb88 | 14197:2ae224195625 |
---|---|
3752 #ifdef USE_EDL | 3752 #ifdef USE_EDL |
3753 if( !edl_decision ) { | 3753 if( !edl_decision ) { |
3754 #else | 3754 #else |
3755 if( 1 ) { // Let the compiler optimize this out | 3755 if( 1 ) { // Let the compiler optimize this out |
3756 #endif | 3756 #endif |
3757 int len=((demuxer->movi_end-demuxer->movi_start)>>8); | 3757 if (sh_video) { |
3758 if (len>0 && sh_video){ | |
3759 osd_visible=sh_video->fps; // 1 sec | 3758 osd_visible=sh_video->fps; // 1 sec |
3760 vo_osd_progbar_type=0; | 3759 vo_osd_progbar_type=0; |
3761 vo_osd_progbar_value=(demuxer->filepos-demuxer->movi_start)/len; | 3760 vo_osd_progbar_value=demuxer_get_percent_pos(demuxer) * 256 / 100; |
3762 vo_osd_changed(OSDTYPE_PROGBAR); | 3761 vo_osd_changed(OSDTYPE_PROGBAR); |
3763 } | 3762 } |
3764 } | 3763 } |
3765 } | 3764 } |
3766 #endif | 3765 #endif |