[MPlayer-cvslog] r36741 - trunk/sub/ass_mp.c

ib subversion at mplayerhq.hu
Sun Jan 26 13:53:26 CET 2014


Author: ib
Date: Sun Jan 26 13:53:26 2014
New Revision: 36741

Log:
Fix bug with option '-fontconfig' and ass subtitles.

The condition for using fontconfig for ass subtitles
is font_fontconfig >= 0. Pass this to libass.

Option '-nofontconfig' won't have an effect else.

Modified:
   trunk/sub/ass_mp.c

Modified: trunk/sub/ass_mp.c
==============================================================================
--- trunk/sub/ass_mp.c	Sun Jan 26 05:14:23 2014	(r36740)
+++ trunk/sub/ass_mp.c	Sun Jan 26 13:53:26 2014	(r36741)
@@ -280,7 +280,7 @@ static void ass_configure_fonts(ASS_Rend
 	else if (font_fontconfig >= 0 && font_name) family = strdup(font_name);
 	else family = 0;
 
-        ass_set_fonts(priv, path, family, font_fontconfig, NULL, 1);
+        ass_set_fonts(priv, path, family, font_fontconfig >= 0, NULL, 1);
 
 	free(dir);
 	free(path);


More information about the MPlayer-cvslog mailing list