mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
cellCamera: close Qt camera on error (e.g. when usb is pulled)
This commit is contained in:
parent
74540844d2
commit
dc700ad620
|
|
@ -113,6 +113,7 @@ void qt_camera_handler::handle_camera_active(bool is_active)
|
|||
void qt_camera_handler::handle_camera_error(QCamera::Error error, const QString& errorString)
|
||||
{
|
||||
camera_log.error("Error event: \"%s\" (error=%d)", errorString, static_cast<int>(error));
|
||||
set_state(camera_handler_state::closed);
|
||||
}
|
||||
|
||||
void qt_camera_handler::open_camera()
|
||||
|
|
|
|||
Loading…
Reference in a new issue