vf_vapoursynth: correctly signal error on script init failure

Otherwise it will do nothing, waiting on nothing forever.
This commit is contained in:
wm4 2018-04-27 18:54:04 +02:00 committed by Jan Ekström
parent 2a28712b44
commit 63441d36ef
1 changed files with 1 additions and 0 deletions

View File

@ -371,6 +371,7 @@ static void vf_vapoursynth_process(struct mp_filter *f)
if (reinit_vs(p, mpi) < 0) {
MP_ERR(p, "could not init VS\n");
mp_frame_unref(&frame);
mp_filter_internal_mark_failed(f);
return;
}
pthread_mutex_lock(&p->lock);