mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
videoaggregator: Check if there's a previous buffer to 'keep'
If we want to keep a previous buffer but there's no previous buffer, we actually need more data instead.
This commit is contained in:
parent
14ac40f106
commit
802a29eb48
1 changed files with 8 additions and 2 deletions
|
@ -1006,8 +1006,14 @@ gst_videoaggregator_fill_queues (GstVideoAggregator * vagg,
|
||||||
gst_segment_to_running_time (&segment, GST_FORMAT_TIME, start_time);
|
gst_segment_to_running_time (&segment, GST_FORMAT_TIME, start_time);
|
||||||
|
|
||||||
if (start_time >= output_end_time) {
|
if (start_time >= output_end_time) {
|
||||||
GST_DEBUG_OBJECT (pad, "buffer duration is -1, start_time >= "
|
if (pad->buffer) {
|
||||||
"output_end_time. Keeping previous buffer");
|
GST_DEBUG_OBJECT (pad, "buffer duration is -1, start_time >= "
|
||||||
|
"output_end_time. Keeping previous buffer");
|
||||||
|
} else {
|
||||||
|
GST_DEBUG_OBJECT (pad, "buffer duration is -1, start_time >= "
|
||||||
|
"output_end_time. No previous buffer, need more data");
|
||||||
|
need_more_data = TRUE;
|
||||||
|
}
|
||||||
gst_buffer_unref (buf);
|
gst_buffer_unref (buf);
|
||||||
continue;
|
continue;
|
||||||
} else if (start_time < output_start_time) {
|
} else if (start_time < output_start_time) {
|
||||||
|
|
Loading…
Reference in a new issue