Commit 389082af authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Contribs: Don't patch libass, but patch fontconfig for xml

parent 3ecb268c
...@@ -2510,9 +2510,6 @@ libass-$(ASS_VERSION).tar.bz2: ...@@ -2510,9 +2510,6 @@ libass-$(ASS_VERSION).tar.bz2:
libass: libass:
$(GIT) clone $(ASS_GIT) $(GIT) clone $(ASS_GIT)
ifdef HAVE_WIN32
(cd $@; patch -p1 < ../Patches/libass-win32.patch)
endif
(cd $@; autoreconf -ivf) (cd $@; autoreconf -ivf)
.libass: libass .libass: libass
......
diff -ruN fontconfig.new/src/fcinit.c fontconfig/src/fcinit.c --- fontconfig/src/fcxml.c 2009-08-13 16:07:13.000000000 +0200
--- fontconfig.new/src/fcinit.c 2009-07-25 21:55:10.000000000 +0200 +++ fontconfig.new/src/fcxml.c 2009-08-13 16:05:41.000000000 +0200
+++ fontconfig/src/fcinit.c 2009-07-25 21:58:05.000000000 +0200
@@ -68,7 +68,8 @@
if (!config)
return FcFalse;
- if (!FcConfigParseAndLoad (config, 0, FcTrue))
+// if (!FcConfigParseAndLoad (config, 0, FcTrue))
+ if (1)
{
FcConfigDestroy (config);
return FcInitFallbackConfig ();
diff -ruN fontconfig.new/src/fcxml.c fontconfig/src/fcxml.c
--- fontconfig.new/src/fcxml.c 2009-07-25 21:55:10.000000000 +0200
+++ fontconfig/src/fcxml.c 2009-07-25 21:56:37.000000000 +0200
@@ -23,6 +23,8 @@ @@ -23,6 +23,8 @@
*/ */
...@@ -57,7 +43,25 @@ diff -ruN fontconfig.new/src/fcxml.c fontconfig/src/fcxml.c ...@@ -57,7 +43,25 @@ diff -ruN fontconfig.new/src/fcxml.c fontconfig/src/fcxml.c
typedef enum _FcElement { typedef enum _FcElement {
FcElementNone, FcElementNone,
FcElementFontconfig, FcElementFontconfig,
@@ -2589,3 +2595,4 @@ @@ -2373,6 +2379,7 @@
const FcChar8 *bs = *((FcChar8 **) b);
return FcStrCmp (as, bs);
}
+#endif
static FcBool
FcConfigParseAndLoadDir (FcConfig *config,
@@ -2380,6 +2387,9 @@
const FcChar8 *dir,
FcBool complain)
{
+ return FcFalse;
+}
+#if 0
DIR *d;
struct dirent *e;
FcBool ret = FcTrue;
@@ -2589,3 +2599,4 @@
#define __fcxml__ #define __fcxml__
#include "fcaliastail.h" #include "fcaliastail.h"
#undef __fcxml__ #undef __fcxml__
......
diff --git a/libass/ass_fontconfig.c b/libass/ass_fontconfig.c
index 006be97..a4a680f 100644
--- a/libass/ass_fontconfig.c
+++ b/libass/ass_fontconfig.c
@@ -449,7 +449,7 @@ FCInstance *fontconfig_init(ASS_Library *library,
}
priv->config = FcConfigCreate();
- rc = FcConfigParseAndLoad(priv->config, (unsigned char *) config, FcTrue);
+ rc = 0;//FcConfigParseAndLoad(priv->config, (unsigned char *) config, FcTrue);
if (!rc) {
ass_msg(library, MSGL_WARN, "No usable fontconfig configuration "
"file found, using fallback.");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment