[Mplayer-cvslog] CVS: main mplayer.c,1.228,1.229

Arpi of Ize arpi at mplayer.dev.hu
Wed Aug 22 20:51:16 CEST 2001


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

Modified Files:
	mplayer.c 
Log Message:
removed ugly switch/goto hack

Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.228
retrieving revision 1.229
diff -u -r1.228 -r1.229
--- mplayer.c	21 Aug 2001 12:09:39 -0000	1.228
+++ mplayer.c	22 Aug 2001 18:51:13 -0000	1.229
@@ -1525,14 +1525,13 @@
     case 'x':
       sub_delay += 0.1;
       break;
-    case '9': c='/'; goto _jump1;
-    case '0': c='*';
-_jump1:
+    case '9':
+    case '0':
     case '*':
     case '/': {
         float mixer_l, mixer_r;
         mixer_getvolume( &mixer_l,&mixer_r );
-        if(c=='*'){
+        if(c=='*' || c=='0'){
             if ( ++mixer_l > 100 ) mixer_l = 100;
             if ( ++mixer_r > 100 ) mixer_r = 100;
         } else {




More information about the MPlayer-cvslog mailing list