Skip to content

Commit

Permalink
Do not stop camera if unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
Florin9doi committed Jan 26, 2020
1 parent 2b57d23 commit 6319689
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Core/HLE/sceUsbCam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ void __UsbCamDoState(PointerWrap &p) {
}

void __UsbCamShutdown() {
Camera::stopCapture();
if (config->mode == Camera::Mode::Video) { // stillImage? TBD
Camera::stopCapture();
}
delete[] videoBuffer;
videoBuffer = nullptr;
delete[] config;
Expand Down

0 comments on commit 6319689

Please sign in to comment.