From 7b0c58ab498f647c6f623c807eec883e1eda9c57 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 12 Oct 2014 20:24:20 +0200 Subject: vf_vapoursynth: resolve paths relative to home/config This affects the script filename passed to the filter. Resolve "~" (and some other variants) as described in the "Paths" section of mpv.rst. --- video/filter/vf_vapoursynth.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'video') diff --git a/video/filter/vf_vapoursynth.c b/video/filter/vf_vapoursynth.c index 1ebf971125..1e17c4fb43 100644 --- a/video/filter/vf_vapoursynth.c +++ b/video/filter/vf_vapoursynth.c @@ -31,6 +31,7 @@ #include "common/msg.h" #include "options/m_option.h" +#include "options/path.h" #include "video/img_format.h" #include "video/mp_image.h" @@ -671,6 +672,8 @@ static int vf_open(vf_instance_t *vf) MP_FATAL(vf, "'file' parameter must be set.\n"); return 0; } + talloc_steal(vf, p->cfg_file); + p->cfg_file = mp_get_user_path(vf, vf->chain->global, p->cfg_file); pthread_mutex_init(&p->lock, NULL); pthread_cond_init(&p->wakeup, NULL); -- cgit v1.2.3