mpegtsmux: Fix refcounting issue when selecting the best pad
authorSebastian Dröge <sebastian@centricular.com>
Tue, 17 Sep 2024 15:31:30 +0000 (18:31 +0300)
committerBackport Bot <gitlab-backport-bot@gstreamer-foundation.org>
Tue, 17 Sep 2024 15:34:32 +0000 (16:34 +0100)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7539>

subprojects/gst-plugins-bad/gst/mpegtsmux/gstbasetsmux.c

index 4d5fedeeeeb3a9e0dbe1389a5c0d31d94999de7f..c9c4fbca26d2ed40f85b8ab4221f6f1f60202fc0 100644 (file)
@@ -2465,7 +2465,7 @@ gst_base_ts_mux_find_best_pad (GstAggregator * aggregator, gboolean timeout)
     buffer = gst_aggregator_pad_peek_buffer (apad);
     if (!buffer) {
       if (!timeout && !GST_PAD_IS_EOS (apad)) {
-        gst_object_replace ((GstObject **) & best, NULL);
+        best = NULL;
         best_ts = GST_CLOCK_TIME_NONE;
         break;
       }