mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue