mirror of https://github.com/mpv-player/mpv
vf_vapoursynth: fix locking
This was obviously nonsense, and a previous "fix" to this code was nonsense too. What is really needed here is temporarily dropping the lock while calling destroy_vs()/reinit_vs(). Fixes #5470.
This commit is contained in:
parent
f4f24c105f
commit
e34c5dc17c
|
@ -369,8 +369,9 @@ static void vf_vapoursynth_process(struct mp_filter *f)
|
|||
if (reinit_vs(p) < 0) {
|
||||
MP_ERR(p, "could not init VS\n");
|
||||
mp_frame_unref(&frame);
|
||||
goto done;
|
||||
return;
|
||||
}
|
||||
pthread_mutex_lock(&p->lock);
|
||||
}
|
||||
if (p->out_pts == MP_NOPTS_VALUE)
|
||||
p->out_pts = mpi->pts;
|
||||
|
|
Loading…
Reference in New Issue