From 7393f4d320d335dc7bb713844f28aa32e7d67fc5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 1 Feb 2018 10:19:08 +0100 Subject: vf_vapoursynth: fix potential deadlock on init failure When VS initialization failed, it could hang due to forgetting to release the mutex. --- video/filter/vf_vapoursynth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/filter/vf_vapoursynth.c b/video/filter/vf_vapoursynth.c index c173265fc5..679733a555 100644 --- a/video/filter/vf_vapoursynth.c +++ b/video/filter/vf_vapoursynth.c @@ -367,7 +367,7 @@ 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); - return; + goto done; } } if (p->out_pts == MP_NOPTS_VALUE) -- cgit v1.2.3