diff options
author | Philip Sequeira <phsequei@gmail.com> | 2017-03-05 16:47:36 -0500 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-03-06 15:41:06 +0100 |
commit | a2a5fa454565e7e7ca11721ec9d1935a9fccf168 (patch) | |
tree | 34345f559f7ec858e2178893f5024e7bb87339a3 /video/out/opengl | |
parent | 1245ac1dc527e10c57b40f9c82c652a68904c86e (diff) | |
download | mpv-a2a5fa454565e7e7ca11721ec9d1935a9fccf168.tar.bz2 mpv-a2a5fa454565e7e7ca11721ec9d1935a9fccf168.tar.xz |
options: add M_OPT_FILE to some more file options
(Helps shell completion.)
Diffstat (limited to 'video/out/opengl')
-rw-r--r-- | video/out/opengl/lcms.c | 4 | ||||
-rw-r--r-- | video/out/opengl/video.c | 2 |
2 files changed, 3 insertions, 3 deletions
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), |