[MPlayer-cvslog] r27128 - trunk/libass/ass_fontconfig.c

eugeni subversion at mplayerhq.hu
Mon Jun 23 16:46:55 CEST 2008


Author: eugeni
Date: Mon Jun 23 16:46:55 2008
New Revision: 27128

Log:
Check if the font set returned from FcFontSort in not NULL.


Modified:
   trunk/libass/ass_fontconfig.c

Modified: trunk/libass/ass_fontconfig.c
==============================================================================
--- trunk/libass/ass_fontconfig.c	(original)
+++ trunk/libass/ass_fontconfig.c	Mon Jun 23 16:46:55 2008
@@ -129,6 +129,8 @@ static char* _select_font(fc_instance_t*
 		goto error;
 
 	fset = FcFontSort(priv->config, pat, FcTrue, NULL, &result);
+	if (!fset)
+		goto error;
 
 	for (curf = 0; curf < fset->nfont; ++curf) {
 		FcPattern* curp = fset->fonts[curf];



More information about the MPlayer-cvslog mailing list