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
This commit is contained in:
Sebastian Dröge 2013-07-09 12:42:17 +02:00
parent 9e9d2ce098
commit 3d0988f46f

View file

@ -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;
}