[MPlayer-cvslog] r29837 - trunk/mplayer.c

reimar subversion at mplayerhq.hu
Fri Nov 6 16:59:42 CET 2009


Author: reimar
Date: Fri Nov  6 16:59:42 2009
New Revision: 29837

Log:
Use an early return instead of a {} block over the whole function in reinit_audio_chain

Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	Fri Nov  6 16:56:30 2009	(r29836)
+++ trunk/mplayer.c	Fri Nov  6 16:59:42 2009	(r29837)
@@ -1606,7 +1606,8 @@ static void update_osd_msg(void) {
 
 
 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 @@ if(mpctx->sh_audio){
   }
   mpctx->mixer.audio_out = mpctx->audio_out;
   mpctx->mixer.volstep = volstep;
-}
 return;
 
 init_error:


More information about the MPlayer-cvslog mailing list