From: Edward Hervey Date: Mon, 2 Apr 2012 13:13:24 +0000 (+0200) Subject: baseparse: always attempt to push if not-linked X-Git-Tag: RELEASE-0.11.90~47^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=98e1463411df740c23668fc3c3075e9ce2f1b1d7;p=platform%2Fupstream%2Fgstreamer.git baseparse: always attempt to push if not-linked This avoids ending up with plenty of pending data (since we'll only try to parse/push one frame from the incoming buffer). Fixes increasing memory consumption when parsers aren't linked Conflicts: libs/gst/base/gstbaseparse.c --- diff --git a/libs/gst/base/gstbaseparse.c b/libs/gst/base/gstbaseparse.c index 27661f1..8067e53 100644 --- a/libs/gst/base/gstbaseparse.c +++ b/libs/gst/base/gstbaseparse.c @@ -2606,7 +2606,7 @@ gst_base_parse_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer) /* probably already implicitly unmapped due to adapter operation, * but for good measure ... */ gst_adapter_unmap (parse->priv->adapter); - if (ret != GST_FLOW_OK) { + if (ret != GST_FLOW_OK && ret != GST_FLOW_NOT_LINKED) { goto done; } if (skip == 0 && flush == 0) {