mpegtsmux: Fix refcounting issue when selecting the best pad

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7538>
This commit is contained in:
Sebastian Dröge 2024-09-17 18:31:30 +03:00 committed by GStreamer Marge Bot
parent 15e7928c8a
commit 9f7148025f

View file

@ -2631,7 +2631,7 @@ gst_base_ts_mux_find_best_pad (GstAggregator * aggregator, gboolean timeout)
buffer = gst_aggregator_pad_peek_buffer (apad); buffer = gst_aggregator_pad_peek_buffer (apad);
if (!buffer) { if (!buffer) {
if (!timeout && !GST_PAD_IS_EOS (apad)) { if (!timeout && !GST_PAD_IS_EOS (apad)) {
gst_object_replace ((GstObject **) & best, NULL); best = NULL;
best_ts = GST_CLOCK_TIME_NONE; best_ts = GST_CLOCK_TIME_NONE;
break; break;
} }