mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
v4l2allocator: Reset count when stopped
This commit is contained in:
parent
6a07e96734
commit
1f70b21926
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue