v4l2allocator: Reset count when stopped

This commit is contained in:
Nicolas Dufresne 2014-05-23 15:55:26 -04:00 committed by Nicolas Dufresne
parent 6a07e96734
commit 1f70b21926

View 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: