[MPlayer-cvslog] r33212 - trunk/gui/util/bitmap.c

ib subversion at mplayerhq.hu
Mon Apr 4 20:23:19 CEST 2011


Author: ib
Date: Mon Apr  4 20:23:19 2011
New Revision: 33212

Log:
Get rid of else-block to improve readability.

Modified:
   trunk/gui/util/bitmap.c

Modified: trunk/gui/util/bitmap.c
==============================================================================
--- trunk/gui/util/bitmap.c	Mon Apr  4 18:02:59 2011	(r33211)
+++ trunk/gui/util/bitmap.c	Mon Apr  4 20:23:19 2011	(r33212)
@@ -233,7 +233,8 @@ int Convert32to1(txSample *in, txSample 
     if (!out->Image) {
         mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[bitmap] not enough memory: %lu\n", out->ImageSize);
         return 0;
-    } else {
+    }
+
         buf = (uint32_t *)in->Image;
 
         for (i = 0; i < out->Width * out->Height; i++) {
@@ -259,7 +260,6 @@ int Convert32to1(txSample *in, txSample 
 
         if (!shaped)
             bpFree(out);
-    }
 
     return 1;
 }


More information about the MPlayer-cvslog mailing list