mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-23 06:41:08 +00:00
Unlock mutex on return to avoid hang
This commit is contained in:
parent
484c46cb58
commit
93954a961c
3
extern/osg-ffmpeg-videoplayer/videostate.cpp
vendored
3
extern/osg-ffmpeg-videoplayer/videostate.cpp
vendored
@ -349,7 +349,10 @@ int VideoState::queue_picture(AVFrame *pFrame, double pts)
|
|||||||
|
|
||||||
vp->pts = pts;
|
vp->pts = pts;
|
||||||
if (vp->set_dimensions(w, h) < 0)
|
if (vp->set_dimensions(w, h) < 0)
|
||||||
|
{
|
||||||
|
this->pictq_mutex.unlock();
|
||||||
return -1;
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
sws_scale(this->sws_context, pFrame->data, pFrame->linesize,
|
sws_scale(this->sws_context, pFrame->data, pFrame->linesize,
|
||||||
0, this->video_ctx->height, vp->rgbaFrame->data, vp->rgbaFrame->linesize);
|
0, this->video_ctx->height, vp->rgbaFrame->data, vp->rgbaFrame->linesize);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user