summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-09-02 21:49:21 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-09-02 21:49:21 +0000
commit9b5e280ea49fa5ec98627a8dc30691fd429d6a3b (patch)
tree1430c0143aee6cf55b1f35dc8a2bbe053c0b7695 /mplayer.c
parentfaa08119a60fd9bdb8a1ac898af366ba88321bf8 (diff)
downloadmpv-9b5e280ea49fa5ec98627a8dc30691fd429d6a3b.tar.bz2
mpv-9b5e280ea49fa5ec98627a8dc30691fd429d6a3b.tar.xz
fix osd volume bar handling in gui
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1849 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index 023573f3dd..ed074f533d 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -1792,6 +1792,16 @@ if(rel_seek_secs || abs_seek_pos){
// printf("mplShMem->Playing=%d \n",mplShMem->Playing);
if(mplShMem->Playing==0) break; // STOP
if(mplShMem->Playing==2) osd_function=OSD_PAUSE;
+#ifdef USE_OSD
+ if ( ( osd_level )&&( mplShMem->VolumeChanged ) )
+ {
+ osd_visible=sh_video->fps; // 1 sec
+ vo_osd_progbar_type=OSD_VOLUME;
+ vo_osd_progbar_value=((mplShMem->Volume )*256.0)/100.0;
+ }
+#endif
+ mixer_setvolume( mplShMem->Volume,mplShMem->Volume );
+ mplShMem->VolumeChanged=0;
}
#endif