mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 1197059 - Disable JasPer support in GDK-PixBuf. r=karlt
This commit is contained in:
parent
49d82fd22e
commit
1d59f8d210
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user