From 9f7148025f9644668b2862f81566ac954c9005c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 17 Sep 2024 18:31:30 +0300 Subject: [PATCH] mpegtsmux: Fix refcounting issue when selecting the best pad Part-of: --- subprojects/gst-plugins-bad/gst/mpegtsmux/gstbasetsmux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/gst/mpegtsmux/gstbasetsmux.c b/subprojects/gst-plugins-bad/gst/mpegtsmux/gstbasetsmux.c index 2f6c0089ac..7c7a04bf6f 100644 --- a/subprojects/gst-plugins-bad/gst/mpegtsmux/gstbasetsmux.c +++ b/subprojects/gst-plugins-bad/gst/mpegtsmux/gstbasetsmux.c @@ -2631,7 +2631,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; }