v4l2allocator: Reset count when stopped
This commit is contained in:
parent
6a07e96734
commit
1f70b21926
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user