changeset 29795:72e11974c9c3

Use an early return instead of a {} block over the whole function in reinit_audio_chain
author reimar
date Fri, 06 Nov 2009 15:59:42 +0000
parents df1826dcdb2d
children 75a6843dbae0
files mplayer.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Fri Nov 06 15:56:30 2009 +0000
+++ b/mplayer.c	Fri Nov 06 15:59:42 2009 +0000
@@ -1606,7 +1606,8 @@
 
 
 void reinit_audio_chain(void) {
-if(mpctx->sh_audio){
+  if (!mpctx->sh_audio)
+      return;
   current_module="init_audio_codec";
   mp_msg(MSGT_CPLAYER,MSGL_INFO,"==========================================================================\n");
   if(!init_best_audio_codec(mpctx->sh_audio,audio_codec_list,audio_fm_list)){
@@ -1666,7 +1667,6 @@
   }
   mpctx->mixer.audio_out = mpctx->audio_out;
   mpctx->mixer.volstep = volstep;
-}
 return;
 
 init_error: