qtmux: Don't post an error message if pushing a sample failed with FLUSHING

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1732>
This commit is contained in:
Sebastian Dröge 2021-04-08 12:18:09 +03:00 committed by Tim-Philipp Müller
parent 29d32a8f00
commit efd19d7d2a

View file

@ -5412,7 +5412,10 @@ not_negotiated:
} }
sample_error: sample_error:
{ {
GST_ELEMENT_ERROR (qtmux, STREAM, MUX, (NULL), ("Failed to push sample.")); /* Only post an error message for actual errors that are not flushing */
if (pad->flow_status < GST_FLOW_OK && pad->flow_status != GST_FLOW_FLUSHING)
GST_ELEMENT_ERROR (qtmux, STREAM, MUX, (NULL),
("Failed to push sample."));
return pad->flow_status; return pad->flow_status;
} }
} }