mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
9e9d2ce098
commit
3d0988f46f
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue