[MPlayer-cvslog] r33468 - trunk/sub/subreader.c

reimar subversion at mplayerhq.hu
Mon May 16 21:20:59 CEST 2011


Author: reimar
Date: Mon May 16 21:20:58 2011
New Revision: 33468

Log:
Fix condition for using FriBidiParType, its values are usually
enums, not defines.

Modified:
   trunk/sub/subreader.c

Modified: trunk/sub/subreader.c
==============================================================================
--- trunk/sub/subreader.c	Mon May 16 11:23:33 2011	(r33467)
+++ trunk/sub/subreader.c	Mon May 16 21:20:58 2011	(r33468)
@@ -1235,7 +1235,7 @@ subtitle* subcp_recode (subtitle *sub)
  */
 int do_fribid_log2vis(int charset, const char *in, FriBidiChar *logical, FriBidiChar *visual, int flip_commas)
 {
-#ifdef FRIBIDI_PAR_LTR
+#if defined(FRIBIDI_PAR_LTR) || FRIBIDI_INTERFACE_VERSION >= 3
   FriBidiParType base = flip_commas ? FRIBIDI_PAR_ON : FRIBIDI_PAR_LTR;
 #else
   FriBidiCharType base = flip_commas ? FRIBIDI_TYPE_ON : FRIBIDI_TYPE_L;


More information about the MPlayer-cvslog mailing list