[Mplayer-cvslog] CVS: main mplayer.c,1.271,1.272

Zoltan Ponekker pontscho at mplayer.dev.hu
Sun Sep 2 23:49:23 CEST 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv5018

Modified Files:
	mplayer.c 
Log Message:
fix osd volume bar handling in gui

Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.271
retrieving revision 1.272
diff -u -r1.271 -r1.272
--- mplayer.c	2 Sep 2001 19:37:46 -0000	1.271
+++ mplayer.c	2 Sep 2001 21:49:20 -0000	1.272
@@ -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
 




More information about the MPlayer-cvslog mailing list