mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-15 16:35:06 +03:00
libcamera: v4l2_device: Increase error level for unsupported devices
If a component tries to open an unsupported device type, no error is presented unless debug is enabled. Report an error if an unsupported device type is opened to ease pipeline development. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
19f9b90542
commit
05ff3d56e0
1 changed files with 1 additions and 1 deletions
|
@ -349,7 +349,7 @@ int V4L2Device::open()
|
||||||
fdEvent_ = new EventNotifier(fd_, EventNotifier::Read);
|
fdEvent_ = new EventNotifier(fd_, EventNotifier::Read);
|
||||||
bufferType_ = V4L2_BUF_TYPE_META_CAPTURE;
|
bufferType_ = V4L2_BUF_TYPE_META_CAPTURE;
|
||||||
} else {
|
} else {
|
||||||
LOG(V4L2, Debug) << "Device is not a supported type";
|
LOG(V4L2, Error) << "Device is not a supported type";
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue