mirror of https://github.com/Genymobile/scrcpy
Fix incorrect log return value
The function must return a SDL_LogPriority, but returned an enum sc_log_level. (It was harmless because this specific return should never happen, as asserted.)
This commit is contained in:
parent
8ff07e0c88
commit
c4323df976
|
@ -42,7 +42,7 @@ convert_log_level_to_sdl(enum sc_log_level level) {
|
|||
return SDL_LOG_PRIORITY_ERROR;
|
||||
default:
|
||||
assert(!"unexpected log level");
|
||||
return SC_LOG_LEVEL_INFO;
|
||||
return SDL_LOG_PRIORITY_INFO;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue