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:
Thibault Saunier 2014-07-17 15:53:53 +02:00
parent f1abac1109
commit 4c38895f4b

View file

@ -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;
}