From f2364cb39840241f4415c9d773f90691626600ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 19 Nov 2014 17:02:40 +0100 Subject: [PATCH] videoaggregator: Don't output 0-duration buffers at the segment end https://bugzilla.gnome.org/show_bug.cgi?id=740376 --- gst-libs/gst/video/gstvideoaggregator.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gst-libs/gst/video/gstvideoaggregator.c b/gst-libs/gst/video/gstvideoaggregator.c index 83ac15beb0..720e702d33 100644 --- a/gst-libs/gst/video/gstvideoaggregator.c +++ b/gst-libs/gst/video/gstvideoaggregator.c @@ -1190,9 +1190,13 @@ gst_videoaggregator_aggregate (GstAggregator * agg) if (agg->segment.stop != -1) output_end_time = MIN (output_end_time, agg->segment.stop); - res = - gst_videoaggregator_fill_queues (vagg, output_start_time, - output_end_time); + if (output_end_time == output_start_time) { + res = GST_FLOW_EOS; + } else { + res = + gst_videoaggregator_fill_queues (vagg, output_start_time, + output_end_time); + } if (res == GST_FLOW_NEEDS_DATA) { GST_DEBUG_OBJECT (vagg, "Need more data for decisions");