changeset 29796:75a6843dbae0

Remove some unnecessary else blocks
author reimar
date Fri, 06 Nov 2009 16:04:39 +0000
parents 72e11974c9c3
children 92abe9f73079
files mplayer.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Fri Nov 06 15:59:42 2009 +0000
+++ b/mplayer.c	Fri Nov 06 16:04:39 2009 +0000
@@ -1614,7 +1614,7 @@
     mpctx->sh_audio=mpctx->d_audio->sh=NULL; // failed to init :(
     mpctx->d_audio->id = -2;
     return;
-  } else
+  }
     initialized_flags|=INITIALIZED_ACODEC;
   mp_msg(MSGT_CPLAYER,MSGL_INFO,"==========================================================================\n");
 
@@ -1644,7 +1644,7 @@
     // FAILED:
     mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_CannotInitAO);
     goto init_error;
-  } else {
+  }
     // SUCCESS:
     initialized_flags|=INITIALIZED_AO;
     mp_msg(MSGT_CPLAYER,MSGL_INFO,"AO: [%s] %dHz %dch %s (%d bytes per sample)\n",
@@ -1664,7 +1664,6 @@
       goto init_error;
     }
 #endif
-  }
   mpctx->mixer.audio_out = mpctx->audio_out;
   mpctx->mixer.volstep = volstep;
 return;