v4l2allocator: Reset flushed group
This ensure that a flushed group memory are the same size as when they where originally allocated / imported.
This commit is contained in:
parent
f3ecbeb577
commit
1304c74c6a
@ -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]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user