v4l2allocator: Reset count when stopped
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 23 May 2014 19:55:26 +0000 (15:55 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Sat, 24 May 2014 19:38:53 +0000 (15:38 -0400)
sys/v4l2/gstv4l2allocator.c

index 12777c522f023ccb73ff5e1e7fea191bf430be34..cc27ed75111309d2d53184da3542299ba8983e7e 100644 (file)
@@ -765,6 +765,8 @@ gst_v4l2_allocator_stop (GstV4l2Allocator * allocator)
   if (v4l2_ioctl (allocator->video_fd, VIDIOC_REQBUFS, &breq) < 0)
     goto reqbufs_failed;
 
+  allocator->count = 0;
+
   g_atomic_int_set (&allocator->active, FALSE);
 
 done: