scrcpy/app/src/decoder.h
Romain Vimont 127e56780a Fix deadlock on exit if SKIP_FRAMES disabled
On exit, the renderer will not consume frames anymore, so signal the
condition variable to wake up the decoder.
2018-02-09 09:41:05 +01:00

20 lines
376 B
C

#ifndef DECODER_H
#define DECODER_H
#include <SDL2/SDL_stdinc.h>
#include <SDL2/SDL_net.h>
struct frames;
struct decoder {
struct frames *frames;
TCPsocket video_socket;
SDL_Thread *thread;
SDL_mutex *mutex;
};
SDL_bool decoder_start(struct decoder *decoder);
void decoder_stop(struct decoder *decoder);
void decoder_join(struct decoder *decoder);
#endif