Patch libass on Win32 to avoid Using FcParseAndLoad
[vlc.git] / extras / contrib / src / Patches / libass-win32.patch
1 diff --git a/libass/ass_fontconfig.c b/libass/ass_fontconfig.c
2 index 006be97..a4a680f 100644
3 --- a/libass/ass_fontconfig.c
4 +++ b/libass/ass_fontconfig.c
5 @@ -449,7 +449,7 @@ FCInstance *fontconfig_init(ASS_Library *library,
6      }
7  
8      priv->config = FcConfigCreate();
9 -    rc = FcConfigParseAndLoad(priv->config, (unsigned char *) config, FcTrue);
10 +    rc = 0;//FcConfigParseAndLoad(priv->config, (unsigned char *) config, FcTrue);
11      if (!rc) {
12          ass_msg(library, MSGL_WARN, "No usable fontconfig configuration "
13                  "file found, using fallback.");