mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 22:41:25 +12:00
cellCamera: close Qt camera on error (e.g. when usb is pulled)
This commit is contained in:
parent
74540844d2
commit
dc700ad620
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue