[MPlayer-cvslog] r30046 - trunk/libvo/font_load_ft.c

adrian subversion at mplayerhq.hu
Wed Dec 16 23:36:17 CET 2009


Author: adrian
Date: Wed Dec 16 23:36:17 2009
New Revision: 30046

Log:
The fontconfig check added in r30044 wasn't save. This makes it more robust.

Modified:
   trunk/libvo/font_load_ft.c

Modified: trunk/libvo/font_load_ft.c
==============================================================================
--- trunk/libvo/font_load_ft.c	Wed Dec 16 12:59:53 2009	(r30045)
+++ trunk/libvo/font_load_ft.c	Wed Dec 16 23:36:17 2009	(r30046)
@@ -1164,7 +1164,7 @@ void load_font_ft(int width, int height,
 	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) {


More information about the MPlayer-cvslog mailing list