diff sub/subreader.c @ 34548:215379500aac

Do not apply writing order via fribidi when libass will be doing it. This lead to the order being flipped twice, and thus looking as if it was not done at all.
author reimar
date Sat, 28 Jan 2012 14:24:59 +0000
parents 6e2b26c5d6de
children 4a7962b0f3d4
line wrap: on
line diff
--- a/sub/subreader.c	Sat Jan 28 14:00:07 2012 +0000
+++ b/sub/subreader.c	Sat Jan 28 14:24:59 2012 +0000
@@ -2496,6 +2496,7 @@
  * @param len length of text in txt
  * @param endpts pts at which this subtitle text should be removed again
  * @param strip_markup if strip markup is set (!= 0), markup tags like <b></b> are ignored
+ *                     and fribidi is used to process right-to-left markers
  *
  * <> and {} are interpreted as comment delimiters, "\n", "\N", '\n', '\r'
  * and '\0' are interpreted as newlines, duplicate, leading and trailing
@@ -2576,6 +2577,7 @@
     free(sub->text[sub->lines]);
   }
 #ifdef CONFIG_FRIBIDI
+  if (strip_markup)
   sub = sub_fribidi(sub, sub_utf8, orig_lines);
 #endif
 }