[Mplayer-cvslog] CVS: main/Gui/mplayer mw.h,1.63,1.64

Zoltan Ponekker pontscho at mplayerhq.hu
Thu Jun 6 09:14:27 CEST 2002


Update of /cvsroot/mplayer/main/Gui/mplayer
In directory mail:/var/tmp.root/cvs-serv31063/Gui/mplayer

Modified Files:
	mw.h 
Log Message:
add mute support ( step 1 ) and fixed panscan bugs (1000l for me)

Index: mw.h
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/mw.h,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -r1.63 -r1.64
--- mw.h	4 Jun 2002 16:38:17 -0000	1.63
+++ mw.h	6 Jun 2002 07:13:53 -0000	1.64
@@ -2,6 +2,7 @@
 // main window
 
 #include "../../libmpdemux/stream.h"
+#include "../../mixer.h"
 
 unsigned char * mplDrawBuffer = NULL;
 int             mplMainRender = 1;
@@ -99,6 +100,7 @@
        case 'l': if ( guiIntfStruct.Playing == 1 ) strcat( trbuf,"p" ); break;
        case 'e': if ( guiIntfStruct.Playing == 2 ) strcat( trbuf,"e" ); break;
        case 'a':
+//            if ( guiIntfStruct.Mute ) { strcat( trbuf,"n" ); break; }
             switch ( guiIntfStruct.AudioType )
              {
               case 0: strcat( trbuf,"n" ); break;
@@ -373,7 +375,7 @@
 
    case evIncVolume:  vo_x11_putkey( wsGrayMul ); break;
    case evDecVolume:  vo_x11_putkey( wsGrayDiv ); break;
-   case evMute:       guiIntfStruct.Mute=1; break;
+   case evMute:       mixer_mute(); guiIntfStruct.Mute=muted; break;
    case evSetVolume:
    case evSetBalance: guiIntfStruct.VolumeChanged=1; break;
 




More information about the MPlayer-cvslog mailing list