[MPlayer-cvslog] r29936 - trunk/subreader.c

reimar subversion at mplayerhq.hu
Fri Nov 20 11:24:31 CET 2009


Author: reimar
Date: Fri Nov 20 11:24:31 2009
New Revision: 29936

Log:
Use early return instead of block over whole function.

Modified:
   trunk/subreader.c

Modified: trunk/subreader.c
==============================================================================
--- trunk/subreader.c	Fri Nov 20 11:22:57 2009	(r29935)
+++ trunk/subreader.c	Fri Nov 20 11:24:31 2009	(r29936)
@@ -1157,7 +1157,8 @@ subtitle* sub_fribidi (subtitle *sub, in
   int l=sub->lines;
   int char_set_num;
   fribidi_boolean log2vis;
-  if(flip_hebrew) { // Please fix the indentation someday
+  if (!flip_hebrew)
+    return sub;
   fribidi_set_mirroring(1);
   fribidi_set_reorder_nsm(0);
 
@@ -1197,7 +1198,6 @@ subtitle* sub_fribidi (subtitle *sub, in
       free (sub->text[--l]);
     return ERR;
   }
-  }
   return sub;
 }
 


More information about the MPlayer-cvslog mailing list