From b5ed6148394062fbc8ac101bd1efe918470ac585 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 23 Nov 2013 21:34:24 +0100 Subject: options: implement --pphelp differently Make it work via --vf=pp:help instead. --- video/filter/vf.c | 1 + video/filter/vf.h | 1 + video/filter/vf_pp.c | 6 ++++++ 3 files changed, 8 insertions(+) (limited to 'video/filter') diff --git a/video/filter/vf.c b/video/filter/vf.c index 9a8c1bba04..212fc1d7a5 100644 --- a/video/filter/vf.c +++ b/video/filter/vf.c @@ -131,6 +131,7 @@ static bool get_desc(struct m_obj_desc *dst, int index) .priv_defaults = vf->priv_defaults, .options = vf->options, .p = vf, + .print_help = vf->print_help, }; return true; } diff --git a/video/filter/vf.h b/video/filter/vf.h index 9b86cd117c..f6e4d5a9a8 100644 --- a/video/filter/vf.h +++ b/video/filter/vf.h @@ -38,6 +38,7 @@ typedef struct vf_info { int priv_size; const void *priv_defaults; const struct m_option *options; + void (*print_help)(void); } vf_info_t; struct vf_format { diff --git a/video/filter/vf_pp.c b/video/filter/vf_pp.c index 68ec22bd22..32ec088e0c 100644 --- a/video/filter/vf_pp.c +++ b/video/filter/vf_pp.c @@ -153,10 +153,16 @@ static int vf_open(vf_instance_t *vf, char *args){ return 1; } +static void print_help(void) +{ + mp_msg(MSGT_CFGPARSER, MSGL_INFO, "%s", pp_help); +} + const vf_info_t vf_info_pp = { .description = "postprocessing", .name = "pp", .open = vf_open, + .print_help = print_help, }; //===========================================================================// -- cgit v1.2.3