Fix scrcpy_otg() return value on error
The function now returns an enum scrcpy_exit_code, not a bool.
This commit is contained in:
parent
d067a11478
commit
2ad93d1fc0
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user