summaryrefslogtreecommitdiffstats
path: root/ext/gdk_pixbuf
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2004-01-18 21:46:58 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2004-01-18 21:46:58 +0000
commit3b0cf935f687c359319104d7b0dd7d73c90da6a9 (patch)
treefc4cb9722017426795998bce5cb783e6eaae0365 /ext/gdk_pixbuf
parent272db0c22e45b45e88f11a52b793bab588a02534 (diff)
use new error signal and classification
Original commit message from CVS: use new error signal and classification
Diffstat (limited to 'ext/gdk_pixbuf')
-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);