mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
Use SDL_bool return type instead of int
Many functions returned an int to indicate their success. For clarity, use SDL_bool instead.
This commit is contained in:
parent
2b44052f80
commit
37d88b8a6a
7 changed files with 27 additions and 27 deletions
|
|
@ -148,16 +148,16 @@ run_finally_free_codec_ctx:
|
|||
return ret;
|
||||
}
|
||||
|
||||
int decoder_start(struct decoder *decoder) {
|
||||
SDL_bool decoder_start(struct decoder *decoder) {
|
||||
SDL_LogDebug(SDL_LOG_CATEGORY_APPLICATION, "Starting decoder thread");
|
||||
|
||||
decoder->thread = SDL_CreateThread(run_decoder, "video_decoder", decoder);
|
||||
if (!decoder->thread) {
|
||||
SDL_LogCritical(SDL_LOG_CATEGORY_SYSTEM, "Could not start decoder thread");
|
||||
return -1;
|
||||
return SDL_FALSE;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return SDL_TRUE;
|
||||
}
|
||||
|
||||
void decoder_join(struct decoder *decoder) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue