Bug 566862 – pixbuf_new_from_file does not autodetect format

2009-01-07  Matthias Clasen  <mclasen@redhat.com>

        Bug 566862 – pixbuf_new_from_file does not autodetect format

        * gdk-pixbuf-io.c (_gdk_pixbuf_get_module): Go back to sniffing
        without looking at the filename, to avoid breaking expected
        functionality.


svn path=/trunk/; revision=22073
This commit is contained in:
Matthias Clasen 2009-01-07 15:02:33 +00:00 committed by Matthias Clasen
parent 5a2d0bb014
commit 54000d0ede
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2009-01-07 Matthias Clasen <mclasen@redhat.com>
Bug 566862 pixbuf_new_from_file does not autodetect format
* gdk-pixbuf-io.c (_gdk_pixbuf_get_module): Go back to sniffing
without looking at the filename, to avoid breaking expected
functionality.
2009-01-01 Matthias Clasen <mclasen@redhat.com>
* === Released 2.15.0 ===

View File

@ -794,7 +794,7 @@ _gdk_pixbuf_get_module (guchar *buffer, guint size,
gchar *type;
gint j;
mime_type = g_content_type_guess (filename, buffer, size, NULL);
mime_type = g_content_type_guess (NULL, buffer, size, NULL);
for (modules = get_file_formats (); modules; modules = g_slist_next (modules)) {
GdkPixbufModule *module = (GdkPixbufModule *)modules->data;