Mercurial > mplayer.hg
diff mplayer.c @ 1848:8ce1c088d05d
fix osd volume bar handling in gui
author | pontscho |
---|---|
date | Sun, 02 Sep 2001 21:49:21 +0000 |
parents | 84635c9e3aca |
children | 58dd326fcc4a |
line wrap: on
line diff
--- a/mplayer.c Sun Sep 02 21:26:51 2001 +0000 +++ b/mplayer.c Sun Sep 02 21:49:21 2001 +0000 @@ -1792,6 +1792,16 @@ // 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