Bug 1197059 - Disable JasPer support in GDK-PixBuf. r=karlt

This commit is contained in:
Andrew Comminos 2015-08-26 23:26:21 -04:00
parent 49d82fd22e
commit 1d59f8d210

View File

@ -107,6 +107,18 @@ nsAppShell::Init()
if (PR_GetEnv("MOZ_DEBUG_PAINTS"))
gdk_window_set_debug_updates(TRUE);
// Disable JasPer module in GDK-PixBuf. See bug 1197059.
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);
if (strcmp(name, "jpeg2000") == 0) {
gdk_pixbuf_format_set_disabled(format, TRUE);
break;
}
}
g_slist_free(pixbufFormats);
int err = pipe(mPipeFDs);
if (err)
return NS_ERROR_OUT_OF_MEMORY;