From 3b0cf935f687c359319104d7b0dd7d73c90da6a9 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sun, 18 Jan 2004 21:46:58 +0000 Subject: use new error signal and classification Original commit message from CVS: use new error signal and classification --- ext/gdk_pixbuf/gstgdkpixbuf.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'ext/gdk_pixbuf') 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); -- cgit