diff options
author | wm4 <wm4@nowhere> | 2018-02-01 10:19:08 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-02-03 05:01:30 -0800 |
commit | 7393f4d320d335dc7bb713844f28aa32e7d67fc5 (patch) | |
tree | f28e8271ca83f323019861143ce5a639bb6db56e /video | |
parent | 60d3327b0baac267966645a61d641672e0f4cb47 (diff) | |
download | mpv-7393f4d320d335dc7bb713844f28aa32e7d67fc5.tar.bz2 mpv-7393f4d320d335dc7bb713844f28aa32e7d67fc5.tar.xz |
vf_vapoursynth: fix potential deadlock on init failure
When VS initialization failed, it could hang due to forgetting to
release the mutex.
Diffstat (limited to 'video')
-rw-r--r-- | video/filter/vf_vapoursynth.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |