mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
videoaggregator: Do not mix the same buffer twice when EOS.
When entering this code path, we know that: We received EOS on this pad. We consumed all its buffers. In any case, we want to replace vaggpad->buffer with NULL, otherwise we will end up mixing the same buffer twice. https://bugzilla.gnome.org/show_bug.cgi?id=781037
This commit is contained in:
parent
7ac883cebf
commit
a7c46e4a08
1 changed files with 3 additions and 1 deletions
|
@ -1268,7 +1268,9 @@ gst_video_aggregator_fill_queues (GstVideoAggregator * vagg,
|
||||||
} else if (is_eos) {
|
} else if (is_eos) {
|
||||||
eos = FALSE;
|
eos = FALSE;
|
||||||
}
|
}
|
||||||
} else if (is_eos) {
|
}
|
||||||
|
|
||||||
|
if (is_eos) {
|
||||||
gst_buffer_replace (&pad->buffer, NULL);
|
gst_buffer_replace (&pad->buffer, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue