From 21a5c416d5de6ef43a5e2c08ba53cb2a8cb59ae2 Mon Sep 17 00:00:00 2001 From: Philip Sequeira Date: Mon, 20 Nov 2017 16:18:54 -0500 Subject: options: add M_OPT_FILE to some more options that take files --- video/out/gpu/video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'video/out/gpu/video.c') diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c index b0c43ef20b..ea47b308d3 100644 --- a/video/out/gpu/video.c +++ b/video/out/gpu/video.c @@ -428,7 +428,7 @@ const struct m_sub_options gl_video_conf = { ({"no", BLEND_SUBS_NO}, {"yes", BLEND_SUBS_YES}, {"video", BLEND_SUBS_VIDEO})), - OPT_PATHLIST("glsl-shaders", user_shaders, 0), + OPT_PATHLIST("glsl-shaders", user_shaders, M_OPT_FILE), OPT_CLI_ALIAS("glsl-shader", "glsl-shaders-append"), OPT_FLAG("deband", deband, 0), OPT_SUBSTRUCT("deband", deband_opts, deband_conf, 0), @@ -436,7 +436,7 @@ const struct m_sub_options gl_video_conf = { OPT_INTRANGE("gpu-tex-pad-x", tex_pad_x, 0, 0, 4096), OPT_INTRANGE("gpu-tex-pad-y", tex_pad_y, 0, 0, 4096), OPT_SUBSTRUCT("", icc_opts, mp_icc_conf, 0), - OPT_STRING("gpu-shader-cache-dir", shader_cache_dir, 0), + OPT_STRING("gpu-shader-cache-dir", shader_cache_dir, M_OPT_FILE), OPT_STRING_VALIDATE("gpu-hwdec-interop", hwdec_interop, 0, ra_hwdec_validate_opt), OPT_REPLACED("opengl-hwdec-interop", "gpu-hwdec-interop"), -- cgit v1.2.3