Skip to content

Commit

Permalink
Fix scrcpy_otg() return value on error
Browse files Browse the repository at this point in the history
The function now returns an enum scrcpy_exit_code, not a bool.
  • Loading branch information
rom1v committed Jan 15, 2024
1 parent d067a11 commit 2ad93d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/usb/scrcpy_otg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2ad93d1

Please sign in to comment.