mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-05 17:09:48 +00:00
baseparse: Don't forget error returns when processing more
If parsing returns a non-OK flow return in the middle of processing an input buffer, don't overwrite that if a later return is OK again - the subclass might return not-linked in the middle, and then discard subsequent data without pushing while returning OK. A later success doesn't invalidate the earlier failure, but we should continue processing after not-linked, so as to keep parse state consistent. https://bugzilla.gnome.org/show_bug.cgi?id=779831
This commit is contained in:
parent
b84cb75200
commit
e571002dcb
1 changed files with 2 additions and 1 deletions
|
@ -3237,6 +3237,7 @@ gst_base_parse_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer)
|
||||||
ret = old_ret;
|
ret = old_ret;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
if (old_ret == GST_FLOW_OK)
|
||||||
old_ret = ret;
|
old_ret = ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue