mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-01 14:11:15 +00:00
videoaggregator: Don't output 0-duration buffers at the segment end
https://bugzilla.gnome.org/show_bug.cgi?id=740376
This commit is contained in:
parent
0ec9bf6140
commit
f2364cb398
1 changed files with 7 additions and 3 deletions
|
@ -1190,9 +1190,13 @@ gst_videoaggregator_aggregate (GstAggregator * agg)
|
||||||
if (agg->segment.stop != -1)
|
if (agg->segment.stop != -1)
|
||||||
output_end_time = MIN (output_end_time, agg->segment.stop);
|
output_end_time = MIN (output_end_time, agg->segment.stop);
|
||||||
|
|
||||||
|
if (output_end_time == output_start_time) {
|
||||||
|
res = GST_FLOW_EOS;
|
||||||
|
} else {
|
||||||
res =
|
res =
|
||||||
gst_videoaggregator_fill_queues (vagg, output_start_time,
|
gst_videoaggregator_fill_queues (vagg, output_start_time,
|
||||||
output_end_time);
|
output_end_time);
|
||||||
|
}
|
||||||
|
|
||||||
if (res == GST_FLOW_NEEDS_DATA) {
|
if (res == GST_FLOW_NEEDS_DATA) {
|
||||||
GST_DEBUG_OBJECT (vagg, "Need more data for decisions");
|
GST_DEBUG_OBJECT (vagg, "Need more data for decisions");
|
||||||
|
|
Loading…
Reference in a new issue