summaryrefslogtreecommitdiffstats
path: root/ext/gdk_pixbuf/gstgdkpixbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gdk_pixbuf/gstgdkpixbuf.c')
-rw-r--r--ext/gdk_pixbuf/gstgdkpixbuf.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/ext/gdk_pixbuf/gstgdkpixbuf.c b/ext/gdk_pixbuf/gstgdkpixbuf.c
index 05821887..48ba463f 100644
--- a/ext/gdk_pixbuf/gstgdkpixbuf.c
+++ b/ext/gdk_pixbuf/gstgdkpixbuf.c
@@ -285,14 +285,13 @@ gst_gdk_pixbuf_chain (GstPad *pad, GstData *_data)
if (filter->pixbuf_loader != NULL) {
GstBuffer *outbuf;
GdkPixbuf *pixbuf;
+ GError *error;
- gdk_pixbuf_loader_close (filter->pixbuf_loader, NULL);
-#if 0
- if (gdk_pixbuf_loader_close (filter->pixbuf_loader, NULL)) {
- gst_element_error (GST_ELEMENT(filter), "error");
+ if (gdk_pixbuf_loader_close (filter->pixbuf_loader, &error)) {
+ gst_element_error (filter, LIBRARY, SHUTDOWN, NULL, (error->message));
+ g_error_free (error);
return;
}
-#endif
pixbuf = gdk_pixbuf_loader_get_pixbuf (filter->pixbuf_loader);