summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-23 21:34:24 +0100
committerwm4 <wm4@nowhere>2013-11-23 21:34:24 +0100
commitb5ed6148394062fbc8ac101bd1efe918470ac585 (patch)
treef00049139819306ab48aae062592a499f1b15fe4 /video
parent25855059af0778c99f7eefeae64c007ed6efe1bb (diff)
downloadmpv-b5ed6148394062fbc8ac101bd1efe918470ac585.tar.bz2
mpv-b5ed6148394062fbc8ac101bd1efe918470ac585.tar.xz
options: implement --pphelp differently
Make it work via --vf=pp:help instead.
Diffstat (limited to 'video')
-rw-r--r--video/filter/vf.c1
-rw-r--r--video/filter/vf.h1
-rw-r--r--video/filter/vf_pp.c6
3 files changed, 8 insertions, 0 deletions
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,
};
//===========================================================================//