summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorPhilip Sequeira <phsequei@gmail.com>2017-03-05 16:47:36 -0500
committerwm4 <wm4@nowhere>2017-03-06 15:41:06 +0100
commita2a5fa454565e7e7ca11721ec9d1935a9fccf168 (patch)
tree34345f559f7ec858e2178893f5024e7bb87339a3 /video
parent1245ac1dc527e10c57b40f9c82c652a68904c86e (diff)
downloadmpv-a2a5fa454565e7e7ca11721ec9d1935a9fccf168.tar.bz2
mpv-a2a5fa454565e7e7ca11721ec9d1935a9fccf168.tar.xz
options: add M_OPT_FILE to some more file options
(Helps shell completion.)
Diffstat (limited to 'video')
-rw-r--r--video/filter/vf_vapoursynth.c2
-rw-r--r--video/out/opengl/lcms.c4
-rw-r--r--video/out/opengl/video.c2
-rw-r--r--video/out/vo_image.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/video/filter/vf_vapoursynth.c b/video/filter/vf_vapoursynth.c
index 625d539dc4..33a586c024 100644
--- a/video/filter/vf_vapoursynth.c
+++ b/video/filter/vf_vapoursynth.c
@@ -736,7 +736,7 @@ static int vf_open(vf_instance_t *vf)
#define OPT_BASE_STRUCT struct vf_priv_s
static const m_option_t vf_opts_fields[] = {
- OPT_STRING("file", cfg_file, 0),
+ OPT_STRING("file", cfg_file, M_OPT_FILE),
OPT_INTRANGE("buffered-frames", cfg_maxbuffer, 0, 1, 9999, OPTDEF_INT(4)),
OPT_CHOICE_OR_INT("concurrent-frames", cfg_maxrequests, 0, 1, 99,
({"auto", -1}), OPTDEF_INT(-1)),
diff --git a/video/out/opengl/lcms.c b/video/out/opengl/lcms.c
index 5bd19547f1..cabcb16954 100644
--- a/video/out/opengl/lcms.c
+++ b/video/out/opengl/lcms.c
@@ -77,9 +77,9 @@ static int validate_3dlut_size_opt(struct mp_log *log, const m_option_t *opt,
#define OPT_BASE_STRUCT struct mp_icc_opts
const struct m_sub_options mp_icc_conf = {
.opts = (const m_option_t[]) {
- OPT_STRING("icc-profile", profile, 0),
+ OPT_STRING("icc-profile", profile, M_OPT_FILE),
OPT_FLAG("icc-profile-auto", profile_auto, 0),
- OPT_STRING("icc-cache-dir", cache_dir, 0),
+ OPT_STRING("icc-cache-dir", cache_dir, M_OPT_FILE),
OPT_INT("icc-intent", intent, 0),
OPT_INTRANGE("icc-contrast", contrast, 0, 0, 100000),
OPT_STRING_VALIDATE("icc-3dlut-size", size_str, 0, validate_3dlut_size_opt),
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c
index 3a19858953..a9ee6ea503 100644
--- a/video/out/opengl/video.c
+++ b/video/out/opengl/video.c
@@ -380,7 +380,7 @@ const struct m_sub_options gl_video_conf = {
({"no", BLEND_SUBS_NO},
{"yes", BLEND_SUBS_YES},
{"video", BLEND_SUBS_VIDEO})),
- OPT_STRINGLIST("opengl-shaders", user_shaders, 0),
+ OPT_STRINGLIST("opengl-shaders", user_shaders, M_OPT_FILE),
OPT_FLAG("deband", deband, 0),
OPT_SUBSTRUCT("deband", deband_opts, deband_conf, 0),
OPT_FLOAT("sharpen", unsharp, 0),
diff --git a/video/out/vo_image.c b/video/out/vo_image.c
index e1bc1aab20..fd3efde253 100644
--- a/video/out/vo_image.c
+++ b/video/out/vo_image.c
@@ -57,7 +57,7 @@ struct vo_image_opts {
static const struct m_sub_options vo_image_conf = {
.opts = (const struct m_option[]) {
OPT_SUBSTRUCT("vo-image", opts, image_writer_conf, 0),
- OPT_STRING("vo-image-outdir", outdir, 0),
+ OPT_STRING("vo-image-outdir", outdir, M_OPT_FILE),
{0},
},
.size = sizeof(struct vo_image_opts),