mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
baseparse: Return FLOW_FLUSHING when pushing a frame on a pad that has been flushed
When going to READY, it is possible that we are still pusing a frame but that our srcpad has already been set to flushing. In that case we should not post any error on the bus but instead cleanly return FLOW_FLUSHING. https://bugzilla.gnome.org/show_bug.cgi?id=733320
This commit is contained in:
parent
f1abac1109
commit
4c38895f4b
1 changed files with 3 additions and 0 deletions
|
@ -2358,6 +2358,9 @@ gst_base_parse_push_frame (GstBaseParse * parse, GstBaseParseFrame * frame)
|
|||
/* ERRORS */
|
||||
no_caps:
|
||||
{
|
||||
if (GST_PAD_IS_FLUSHING (parse->srcpad))
|
||||
return GST_FLOW_FLUSHING;
|
||||
|
||||
GST_ELEMENT_ERROR (parse, STREAM, DECODE, ("No caps set"), (NULL));
|
||||
return GST_FLOW_ERROR;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue