Handle condition variable failure

Add condition variables function wrappers to handle unexpected failure.
This commit is contained in:
Romain Vimont
2017-12-15 16:38:14 +01:00
parent c4266e487b
commit b9c9466d65
3 changed files with 16 additions and 2 deletions

View File

@@ -353,7 +353,7 @@ SDL_bool show_screen(const char *serial, Uint16 local_port) {
AVFrame *frame = frames.rendering_frame;
frames.rendering_frame_consumed = SDL_TRUE;
if (!decoder.skip_frames) {
SDL_CondSignal(frames.rendering_frame_consumed_cond);
cond_signal(frames.rendering_frame_consumed_cond);
}
struct size current_frame_size = {frame->width, frame->height};