summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
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,
};
//===========================================================================//