mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-24 17:15:07 +03:00
libcamera: v4l2_videodevice: Align which type variable is used in queueBuffer()
Reading V4L2VideoDevice::queueBuffer() is confusing since buf.type is first set to bufferType_ but then both variables are used in V4L2 macros to operate based on which type of buffer is being processed. Align on only using buf.type since it has the most existing users. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
fca1109155
commit
3f9d34f55e
1 changed files with 1 additions and 1 deletions
|
@ -1004,7 +1004,7 @@ int V4L2VideoDevice::queueBuffer(Buffer *buffer)
|
|||
buf.m.planes = v4l2Planes;
|
||||
}
|
||||
|
||||
if (V4L2_TYPE_IS_OUTPUT(bufferType_)) {
|
||||
if (V4L2_TYPE_IS_OUTPUT(buf.type)) {
|
||||
buf.bytesused = buffer->bytesused_;
|
||||
buf.sequence = buffer->sequence_;
|
||||
buf.timestamp.tv_sec = buffer->timestamp_ / 1000000000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue