qtmux: Don't post an error message if pushing a sample failed with FLUSHING
authorSebastian Dröge <sebastian@centricular.com>
Thu, 8 Apr 2021 09:18:09 +0000 (12:18 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 15 Feb 2022 11:43:41 +0000 (13:43 +0200)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1711>

subprojects/gst-plugins-good/gst/isomp4/gstqtmux.c

index 418a5c8..74eaf5e 100644 (file)
@@ -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;
   }
 }