mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 19:21:06 +00:00
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:
parent
15e7928c8a
commit
9f7148025f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue