changeset 36645:289d315088ad

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.
author ib
date Sun, 26 Jan 2014 12:53:26 +0000
parents 8d39d6874ec0
children 40c36c45384f
files sub/ass_mp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sub/ass_mp.c	Sun Jan 26 04:14:23 2014 +0000
+++ b/sub/ass_mp.c	Sun Jan 26 12:53:26 2014 +0000
@@ -280,7 +280,7 @@
 	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);