# HG changeset patch # User ib # Date 1390740806 0 # Node ID 289d315088ad4c1aa8c7faba451e00f7ef3705ef # Parent 8d39d6874ec0de2cb08a66a08a6421c181ad91c0 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. diff -r 8d39d6874ec0 -r 289d315088ad sub/ass_mp.c --- 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);