summaryrefslogtreecommitdiff
path: root/widget
diff options
context:
space:
mode:
authorPale Moon <git-repo@palemoon.org>2015-12-15 13:10:46 +0100
committerPale Moon <git-repo@palemoon.org>2015-12-15 13:10:46 +0100
commitf50994bafb60dc31707a58e9cdeed2d5fc02e066 (patch)
tree98a9f58340f340f200c418e999ae854ad8572f84 /widget
parent0685ffe408b6bcb37dc2156d1f89438cd6bf570c (diff)
downloadpalemoon-gre-f50994bafb60dc31707a58e9cdeed2d5fc02e066.tar.gz
Disable JasPer module in GDK-PixBuf.
Diffstat (limited to 'widget')
-rw-r--r--widget/gtk2/nsAppShell.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/widget/gtk2/nsAppShell.cpp b/widget/gtk2/nsAppShell.cpp
index 444dd793d..99d04391c 100644
--- a/widget/gtk2/nsAppShell.cpp
+++ b/widget/gtk2/nsAppShell.cpp
@@ -84,6 +84,20 @@ nsAppShell::Init()
if (PR_GetEnv("MOZ_DEBUG_PAINTS"))
gdk_window_set_debug_updates(TRUE);
+ // Disable JasPer module in GDK-PixBuf.
+ GSList* pixbufFormats = gdk_pixbuf_get_formats();
+ for (GSList* iter = pixbufFormats; iter; iter = iter->next) {
+ GdkPixbufFormat* format = static_cast<GdkPixbufFormat*>(iter->data);
+ gchar* name = gdk_pixbuf_format_get_name(format);
+ bool isJasper = strcmp(name, "jpeg2000") == 0;
+ g_free(name);
+ if (isJasper) {
+ gdk_pixbuf_format_set_disabled(format, TRUE);
+ break;
+ }
+ }
+ g_slist_free(pixbufFormats);
+
int err = pipe(mPipeFDs);
if (err)
return NS_ERROR_OUT_OF_MEMORY;