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:
Nicolas Dufresne 2014-05-05 12:37:43 -04:00 committed by Nicolas Dufresne
parent f3ecbeb577
commit 1304c74c6a

View file

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