Commit 1304c74c authored by Nicolas Dufresne's avatar Nicolas Dufresne Committed by Nicolas Dufresne
Browse files

v4l2allocator: Reset flushed group

This ensure that a flushed group memory are the same size as when they
where originally allocated / imported.
parent f3ecbeb5
......@@ -1185,6 +1185,8 @@ gst_v4l2_allocator_flush (GstV4l2Allocator * allocator)
if (IS_QUEUED (group->buffer)) {
UNSET_QUEUED (group->buffer);
gst_v4l2_allocator_reset_group (allocator, group);
for (n = 0; n < group->n_mem; n++)
gst_memory_unref (group->mem[n]);
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