Commit 3d0988f4 authored by Sebastian Dröge's avatar Sebastian Dröge

videomixer: Fix handling of buffers without a duration

We'll have to pop buffer from collectpads and store it
internally only to get the timestamp of the next buffer.
If we continue to keep it in collectpads, no new buffer
to calculate the end time will ever arrive.

https://bugzilla.gnome.org/show_bug.cgi?id=703743
parent 9e9d2ce0
......@@ -699,6 +699,8 @@ gst_videomixer2_fill_queues (GstVideoMixer2 * mix,
if (end_time == -1) {
mixcol->queued = buf;
buf = gst_collect_pads_pop (mix->collect, &mixcol->collect);
gst_buffer_unref (buf);
need_more_data = TRUE;
continue;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment