Fix scrcpy_otg() return value on error

The function now returns an enum scrcpy_exit_code, not a bool.
This commit is contained in:
Romain Vimont 2024-01-15 22:01:19 +01:00
parent d067a11478
commit 2ad93d1fc0

View File

@ -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);