2
0
mirror of https://github.com/Genymobile/scrcpy synced 2025-09-05 08:45:47 +00:00

Fix scrcpy() return value

The scrcpy() function returns a SDL_bool to indicate its success, but
was initialized to 0 (SDL_FALSE) instead of SDL_TRUE.
This commit is contained in:
Romain Vimont
2018-02-04 12:20:41 +01:00
parent 82ee55845c
commit 5eb91a4ca7
2 changed files with 2 additions and 4 deletions

View File

@@ -519,7 +519,7 @@ void event_loop(void) {
}
SDL_bool scrcpy(const char *serial, Uint16 local_port, Uint16 max_size, Uint32 bit_rate) {
SDL_bool ret = 0;
SDL_bool ret = SDL_TRUE;
process_t push_proc = push_server(serial);
if (wait_for_success(push_proc, "adb push")) {