From efd19d7d2a7a1a4e9904226353b29fb9e313cfe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 8 Apr 2021 12:18:09 +0300 Subject: [PATCH] qtmux: Don't post an error message if pushing a sample failed with FLUSHING Part-of: --- subprojects/gst-plugins-good/gst/isomp4/gstqtmux.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-good/gst/isomp4/gstqtmux.c b/subprojects/gst-plugins-good/gst/isomp4/gstqtmux.c index 418a5c8f1b..74eaf5e386 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; } }