mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
cellCamera: silence some log errors
This commit is contained in:
parent
76c1681173
commit
5eabe9aa33
2 changed files with 10 additions and 11 deletions
|
|
@ -9,6 +9,11 @@ LOG_CHANNEL(camera_log, "Camera");
|
|||
|
||||
qt_camera_handler::qt_camera_handler() : camera_handler_base()
|
||||
{
|
||||
// List available cameras
|
||||
for (const QCameraInfo& cameraInfo : QCameraInfo::availableCameras())
|
||||
{
|
||||
camera_log.success("Found camera: name=%s, description=%s", cameraInfo.deviceName().toStdString(), cameraInfo.description().toStdString());
|
||||
}
|
||||
}
|
||||
|
||||
qt_camera_handler::~qt_camera_handler()
|
||||
|
|
@ -20,7 +25,7 @@ void qt_camera_handler::set_camera(const QCameraInfo& cameraInfo)
|
|||
{
|
||||
if (cameraInfo.isNull())
|
||||
{
|
||||
camera_log.error("No camera present");
|
||||
camera_log.warning("No camera present");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -67,12 +72,6 @@ void qt_camera_handler::set_camera(const QCameraInfo& cameraInfo)
|
|||
|
||||
void qt_camera_handler::open_camera()
|
||||
{
|
||||
// List available cameras
|
||||
for (const QCameraInfo& cameraInfo : QCameraInfo::availableCameras())
|
||||
{
|
||||
camera_log.success("Found camera: name=%s, description=%s", cameraInfo.deviceName().toStdString(), cameraInfo.description().toStdString());
|
||||
}
|
||||
|
||||
// Let's use the default camera for now
|
||||
set_camera(QCameraInfo::defaultCamera());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue