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:
wm4 2018-02-03 23:11:24 +01:00 committed by Kevin Mitchell
parent f4f24c105f
commit e34c5dc17c
1 changed files with 2 additions and 1 deletions

View File

@ -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;