From 1eb15a1304049678136814f2f99ab89ac0d0b7cc Mon Sep 17 00:00:00 2001 From: komh Date: Sat, 20 Nov 2010 11:39:05 +0000 Subject: [PATCH] font_load_ft.c: disable -fontconfig if compiled without libfontconfig Set the option value to disabled, not enabled, if the functionality is not available at all. Without this, -font and -subfont do not work when using -ass. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32636 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/font_load_ft.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libvo/font_load_ft.c b/libvo/font_load_ft.c index 3c1ff55d19..41a0f886cb 100644 --- a/libvo/font_load_ft.c +++ b/libvo/font_load_ft.c @@ -70,7 +70,11 @@ int vo_image_height = 0; int force_load_font; int using_freetype = 0; +#ifdef CONFIG_FONTCONFIG int font_fontconfig = 1; +#else +int font_fontconfig = -1; +#endif //// constants static unsigned int const colors = 256;