videoaggregator: Don't wait if input buffer is after output
authorOlivier Crête <olivier.crete@collabora.com>
Sat, 14 May 2016 09:56:59 +0000 (11:56 +0200)
committerOlivier Crête <olivier.crete@collabora.com>
Fri, 20 May 2016 14:58:46 +0000 (10:58 -0400)
If the input buffer is after the end of the output buffer, then waiting
for more data won't help. We will never get an input buffer for this point.

This fixes compositing of streams from rtspsrc.

https://bugzilla.gnome.org/show_bug.cgi?id=766422

gst-libs/gst/video/gstvideoaggregator.c

index 49ab5ae..28b2283 100644 (file)
@@ -1147,8 +1147,7 @@ gst_video_aggregator_fill_queues (GstVideoAggregator * vagg,
                 "output_end_running_time. Keeping previous buffer");
           } else {
             GST_DEBUG_OBJECT (pad, "buffer duration is -1, start_time >= "
-                "output_end_running_time. No previous buffer, need more data");
-            need_more_data = TRUE;
+                "output_end_running_time. No previous buffer.");
           }
           gst_buffer_unref (buf);
           continue;