1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 06:15:32 +00:00

Unlock mutex on return to avoid hang

This commit is contained in:
Andrei Kortunov 2021-04-10 09:30:58 +04:00
parent 484c46cb58
commit 93954a961c

View file

@ -349,7 +349,10 @@ int VideoState::queue_picture(AVFrame *pFrame, double pts)
vp->pts = pts;
if (vp->set_dimensions(w, h) < 0)
{
this->pictq_mutex.unlock();
return -1;
}
sws_scale(this->sws_context, pFrame->data, pFrame->linesize,
0, this->video_ctx->height, vp->rgbaFrame->data, vp->rgbaFrame->linesize);