mirror of
https://github.com/Genymobile/scrcpy
synced 2025-08-29 13:28:13 +00:00
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
|
// Minimal SDL initialization
|
||||||
if (SDL_Init(SDL_INIT_EVENTS)) {
|
if (SDL_Init(SDL_INIT_EVENTS)) {
|
||||||
LOGE("Could not initialize SDL: %s", SDL_GetError());
|
LOGE("Could not initialize SDL: %s", SDL_GetError());
|
||||||
return false;
|
return SCRCPY_EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
atexit(SDL_Quit);
|
atexit(SDL_Quit);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user