v4l2allocator: Reset flushed group
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Mon, 5 May 2014 16:37:43 +0000 (12:37 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 8 May 2014 19:56:37 +0000 (15:56 -0400)
This ensure that a flushed group memory are the same size as when they
where originally allocated / imported.

sys/v4l2/gstv4l2allocator.c

index 6f14871..3e56570 100644 (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]);
     }