mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
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:
parent
5a2d0bb014
commit
54000d0ede
@ -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 ===
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user