mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-20 03:25:03 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue