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

eugeni subversion at mplayerhq.hu
Tue Apr 10 19:53:41 CEST 2007


Author: eugeni
Date: Tue Apr 10 19:53:41 2007
New Revision: 22964

Modified:
   trunk/libass/ass_fontconfig.c

Log:
Don't check if user-supplied default font path exists.
It is checked in FT_New_Face anyway.


Modified: trunk/libass/ass_fontconfig.c
==============================================================================
--- trunk/libass/ass_fontconfig.c	(original)
+++ trunk/libass/ass_fontconfig.c	Tue Apr 10 19:53:41 2007
@@ -383,13 +383,8 @@ fc_instance_t* fontconfig_init(ass_libra
 	}
 
 	priv->family_default = family ? strdup(family) : 0;
+	priv->path_default = path ? strdup(path) : 0;
 	priv->index_default = 0;
-	
-	rc = stat(path, &st);
-	if (!rc && S_ISREG(st.st_mode))
-		priv->path_default = path ? strdup(path) : 0;
-	else
-		priv->path_default = 0;
 
 	return priv;
 }



More information about the MPlayer-cvslog mailing list