diff options
author | wm4 <wm4@nowhere> | 2013-12-21 20:03:36 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-21 21:43:16 +0100 |
commit | 9242c34fa26aafb09a9973a5175c281233a13bdc (patch) | |
tree | c94bf638a38ce29c8c6e37c9c6167968e8d3cc34 /video/out/gl_video.c | |
parent | d8d42b44fc717c695af59c14213d54885088ea37 (diff) | |
download | mpv-9242c34fa26aafb09a9973a5175c281233a13bdc.tar.bz2 mpv-9242c34fa26aafb09a9973a5175c281233a13bdc.tar.xz |
m_option: add mp_log callback to OPT_STRING_VALIDATE options
And also convert a bunch of other code, especially ao_wasapi and
ao_portaudio.
Diffstat (limited to 'video/out/gl_video.c')
-rw-r--r-- | video/out/gl_video.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c index b27638b904..2e662f65ff 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -298,8 +298,8 @@ const struct gl_video_opts gl_video_opts_hq_def = { .alpha_mode = 2, }; -static int validate_scaler_opt(const m_option_t *opt, struct bstr name, - struct bstr param); +static int validate_scaler_opt(struct mp_log *log, const m_option_t *opt, + struct bstr name, struct bstr param); #define OPT_BASE_STRUCT struct gl_video_opts const struct m_sub_options gl_video_conf = { @@ -2219,15 +2219,15 @@ bool gl_video_get_equalizer(struct gl_video *p, const char *name, int *val) return mp_csp_equalizer_get(&p->video_eq, name, val) >= 0; } -static int validate_scaler_opt(const m_option_t *opt, struct bstr name, - struct bstr param) +static int validate_scaler_opt(struct mp_log *log, const m_option_t *opt, + struct bstr name, struct bstr param) { if (bstr_equals0(param, "help")) { - mp_msg(MSGT_VO, MSGL_INFO, "Available scalers:\n"); + mp_info(log, "Available scalers:\n"); for (const char **filter = fixed_scale_filters; *filter; filter++) - mp_msg(MSGT_VO, MSGL_INFO, " %s\n", *filter); + mp_info(log, " %s\n", *filter); for (int n = 0; mp_filter_kernels[n].name; n++) - mp_msg(MSGT_VO, MSGL_INFO, " %s\n", mp_filter_kernels[n].name); + mp_info(log, " %s\n", mp_filter_kernels[n].name); return M_OPT_EXIT - 1; } char s[20]; |