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
This commit is contained in:
Edward Hervey 2012-04-02 15:13:24 +02:00
parent 9441e711df
commit df6d0b0696

View file

@ -2466,7 +2466,7 @@ gst_base_parse_chain (GstPad * pad, GstBuffer * buffer)
ret = gst_base_parse_handle_and_push_frame (parse, bclass, frame);
GST_PAD_STREAM_UNLOCK (parse->srcpad);
if (ret != GST_FLOW_OK) {
if (ret != GST_FLOW_OK && ret != GST_FLOW_NOT_LINKED) {
GST_LOG_OBJECT (parse, "push returned %d", ret);
break;
}