Skip to content

Display and control your Android device

Fix scrcpy_otg() return value on error

Romain Vimont2ad93d1fc009
diff --git a/app/src/usb/scrcpy_otg.c b/app/src/usb/scrcpy_otg.c
index 6a7fd79b..dfb0b9e9 100644
--- a/app/src/usb/scrcpy_otg.c
+++ b/app/src/usb/scrcpy_otg.c
@@ -62,7 +62,7 @@ scrcpy_otg(struct scrcpy_options *options) {
// Minimal SDL initialization
if (SDL_Init(SDL_INIT_EVENTS)) {
LOGE("Could not initialize SDL: %s", SDL_GetError());
- return false;
+ return SCRCPY_EXIT_FAILURE;
}
atexit(SDL_Quit);