From 1078baf9aa35ea06428671f17bce93d438b0cb75 Mon Sep 17 00:00:00 2001 From: adrian Date: Wed, 16 Dec 2009 22:36:17 +0000 Subject: The fontconfig check added in r30044 wasn't safe. This makes it more robust. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30046 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/font_load_ft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvo/font_load_ft.c b/libvo/font_load_ft.c index 5a5a09d108..771177eb96 100644 --- a/libvo/font_load_ft.c +++ b/libvo/font_load_ft.c @@ -1164,7 +1164,7 @@ void load_font_ft(int width, int height, font_desc_t** fontp, const char *font_n FcDefaultSubstitute(fc_pattern); fc_pattern2 = fc_pattern; fc_pattern = FcFontMatch(0, fc_pattern, &result); - if (result == FcResultMatch) { + if (fc_pattern) { FcPatternDestroy(fc_pattern2); FcPatternGetBool(fc_pattern, FC_SCALABLE, 0, &scalable); if (scalable != FcTrue) { -- cgit v1.2.3