From 0509e86b433aaa7976b67c2b4c8a7de5827bdd77 Mon Sep 17 00:00:00 2001 From: Vineeth T M Date: Thu, 28 Aug 2014 13:53:23 +0530 Subject: [PATCH] gdkpixbufdec: EOS and NOT_LINKED are no errors in general Don't post an error message for them but let upstream handle anything accordingly. https://bugzilla.gnome.org/show_bug.cgi?id=735564 --- ext/gdk_pixbuf/gstgdkpixbufdec.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ext/gdk_pixbuf/gstgdkpixbufdec.c b/ext/gdk_pixbuf/gstgdkpixbufdec.c index fc42ed1944..1a280fe1c9 100644 --- a/ext/gdk_pixbuf/gstgdkpixbufdec.c +++ b/ext/gdk_pixbuf/gstgdkpixbufdec.c @@ -410,9 +410,10 @@ gst_gdk_pixbuf_dec_sink_event (GstPad * pad, GstObject * parent, /* as long as we don't have flow returns for event functions we need * to post an error here, or the application might never know that * things failed */ - if (res != GST_FLOW_OK && res != GST_FLOW_FLUSHING) { - GST_ELEMENT_ERROR (pixbuf, STREAM, FAILED, (NULL), - ("Flow: %s", gst_flow_get_name (res))); + if (res != GST_FLOW_OK && res != GST_FLOW_FLUSHING + && res != GST_FLOW_EOS && res != GST_FLOW_NOT_LINKED) { + GST_ELEMENT_ERROR (pixbuf, STREAM, FAILED, (NULL), ("Flow: %s", + gst_flow_get_name (res))); forward = FALSE; ret = FALSE; }