aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-20 10:24:31 +0000
committerGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-20 10:24:31 +0000
commit752839d86b2ca9d45fdf59a746de1107ee547957 (patch)
treec57f9234fe5deac9b63d27d7c0beaafcd7b01c1a
parent6712791ad648ab7a6595969421a5d2847a947a29 (diff)
Use early return instead of block over whole function.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29936 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--subreader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/subreader.c b/subreader.c
index 2fb7fd5f36..7617cf3239 100644
--- a/subreader.c
+++ b/subreader.c
@@ -1157,7 +1157,8 @@ subtitle* sub_fribidi (subtitle *sub, int sub_utf8)
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, int sub_utf8)
free (sub->text[--l]);
return ERR;
}
- }
return sub;
}