From: Sebastian Dröge Date: Thu, 8 Apr 2021 09:18:09 +0000 (+0300) Subject: qtmux: Don't post an error message if pushing a sample failed with FLUSHING X-Git-Tag: 1.22.0~2428 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8bda2ef474d99cb79550db5bbed1522c8ae7ab5b;p=platform%2Fupstream%2Fgstreamer.git qtmux: Don't post an error message if pushing a sample failed with FLUSHING Part-of: --- diff --git a/subprojects/gst-plugins-good/gst/isomp4/gstqtmux.c b/subprojects/gst-plugins-good/gst/isomp4/gstqtmux.c index 418a5c8..74eaf5e 100644 --- a/subprojects/gst-plugins-good/gst/isomp4/gstqtmux.c +++ b/subprojects/gst-plugins-good/gst/isomp4/gstqtmux.c @@ -5412,7 +5412,10 @@ not_negotiated: } 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; } }