mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-03 06:39:39 +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
|
// 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…
Add table
Add a link
Reference in a new issue