Destroy condition variable on frames destruction
A condition variable was init for the "struct frames", but was never destroyed.
This commit is contained in:
parent
1a71c4ab1d
commit
2b44052f80
1 changed files with 1 additions and 0 deletions
|
@ -37,6 +37,7 @@ error_0:
|
||||||
|
|
||||||
void frames_destroy(struct frames *frames) {
|
void frames_destroy(struct frames *frames) {
|
||||||
SDL_DestroyMutex(frames->mutex);
|
SDL_DestroyMutex(frames->mutex);
|
||||||
|
SDL_DestroyCond(frames->rendering_frame_consumed_cond);
|
||||||
av_frame_free(&frames->rendering_frame);
|
av_frame_free(&frames->rendering_frame);
|
||||||
av_frame_free(&frames->decoding_frame);
|
av_frame_free(&frames->decoding_frame);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue