[MPlayer-cvslog] r33441 - trunk/sub/subreader.c
reimar
subversion at mplayerhq.hu
Sun May 8 10:55:00 CEST 2011
Author: reimar
Date: Sun May 8 10:55:00 2011
New Revision: 33441
Log:
Attempt to fix compilation against older fribidi versions.
Modified:
trunk/sub/subreader.c
Modified: trunk/sub/subreader.c
==============================================================================
--- trunk/sub/subreader.c Sun May 8 10:52:43 2011 (r33440)
+++ trunk/sub/subreader.c Sun May 8 10:55:00 2011 (r33441)
@@ -1235,7 +1235,11 @@ 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
FriBidiParType base = flip_commas ? FRIBIDI_PAR_ON : FRIBIDI_PAR_LTR;
+#else
+ FriBidiCharType base = flip_commas ? FRIBIDI_TYPE_ON : FRIBIDI_TYPE_L;
+#endif
int len = strlen(in);
len = fribidi_charset_to_unicode(charset, in, len, logical);
if (!fribidi_log2vis(logical, len, &base, visual, NULL, NULL, NULL))
More information about the MPlayer-cvslog
mailing list