diff options
Diffstat (limited to 'cocoa')
-rw-r--r-- | cocoa/apple_image.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cocoa/apple_image.m b/cocoa/apple_image.m index 91a54ff06..9d69f3310 100644 --- a/cocoa/apple_image.m +++ b/cocoa/apple_image.m @@ -81,6 +81,12 @@ static nserror register_for_type( NSString *mime ) if (!reserve( 1 )) return NSERROR_NOMEM; const char *type = [mime UTF8String]; + /* nsgif has priority since it supports animated GIF */ +#ifdef WITH_GIF + if (strcmp(type, "image/gif") == 0) + return NSERROR_OK; +#endif + lwc_error lerror = lwc_intern_string( type, strlen( type ), &apple_image_mime_types[types_count] ); if (lerror != lwc_error_ok) return NSERROR_NOMEM; |