From 2c145b18b77d58ed8928cfee480f48c731953c6d 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 4d5fedeeee..c9c4fbca26 100644 --- a/subprojects/gst-plugins-bad/gst/mpegtsmux/gstbasetsmux.c +++ b/subprojects/gst-plugins-bad/gst/mpegtsmux/gstbasetsmux.c @@ -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; }