summaryrefslogtreecommitdiff
path: root/src/qcam/assets/feathericons/star.svg
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2020-06-04 22:33:24 +0900
committerPaul Elder <paul.elder@ideasonboard.com>2020-06-08 17:11:49 +0900
commit071e3698f56522726f2ba1aeeade44d6c6c4f7f8 (patch)
treef2af4f7993948f1597155753832640878019c768 /src/qcam/assets/feathericons/star.svg
parent8df593841dc81a015906f8273eccd3de2c99f5ca (diff)
v4l2: v4l2_camera_proxy: Fix segfault on restarting streams
The V4L2 compatibility layer keeps track of the index of the next buffer to be dequeued, to handle VIDIOC_DQBUF. This index is set to 0 on startup and incremented (modulo #frames), and is otherwise never reset. This means that if the last handled frame index is not #frames-1, and the stream is restarted without restarting libcamera and the V4L2 compatilibity layer, the buffer index number won't match with the libcamera buffer index number, causing a segfault. Fix this by resetting the current buffer index to zero on VIDIOC_STREAMON. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'src/qcam/assets/feathericons/star.svg')
0 files changed, 0 insertions, 0 deletions