summaryrefslogtreecommitdiffstats
path: root/video/filter
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-12 20:24:20 +0200
committerwm4 <wm4@nowhere>2014-10-12 20:24:20 +0200
commit7b0c58ab498f647c6f623c807eec883e1eda9c57 (patch)
tree4306daf54192c62a31b0dcd2eb5d1518f82baf35 /video/filter
parent5a07ce758e26226641951b886b55944963e540fd (diff)
downloadmpv-7b0c58ab498f647c6f623c807eec883e1eda9c57.tar.bz2
mpv-7b0c58ab498f647c6f623c807eec883e1eda9c57.tar.xz
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.
Diffstat (limited to 'video/filter')
-rw-r--r--video/filter/vf_vapoursynth.c3
1 files changed, 3 insertions, 0 deletions
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);