mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
Provide decoder_init()
Expose an initializer so that the caller does not have to guess what fields must be initialized.
This commit is contained in:
parent
4662198261
commit
523097eadf
3 changed files with 7 additions and 2 deletions
|
|
@ -140,6 +140,11 @@ run_finally_free_codec_ctx:
|
|||
return ret;
|
||||
}
|
||||
|
||||
void decoder_init(struct decoder *decoder, struct frames *frames, TCPsocket video_socket) {
|
||||
decoder->frames = frames;
|
||||
decoder->video_socket = video_socket;
|
||||
}
|
||||
|
||||
SDL_bool decoder_start(struct decoder *decoder) {
|
||||
SDL_LogDebug(SDL_LOG_CATEGORY_APPLICATION, "Starting decoder thread");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue