mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 17:53:42 +01:00
Do not stop camera if unnecessary
This commit is contained in:
1 parent
2b57d2365f
commit
63196897e4
1 file changed
+3
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user