[vlc-commits] filters: add filter name
Thomas Guillem
git at videolan.org
Thu Jun 1 13:25:25 CEST 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri May 5 10:14:02 2017 +0200| [c2a5c3908035c5f23b345c2cc3069dac7668bdc5] | committer: Jean-Baptiste Kempf
filters: add filter name
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c2a5c3908035c5f23b345c2cc3069dac7668bdc5
---
include/vlc_filter.h | 2 ++
src/misc/filter_chain.c | 1 +
2 files changed, 3 insertions(+)
diff --git a/include/vlc_filter.h b/include/vlc_filter.h
index 5743cac21e..a3ecc2c1b3 100644
--- a/include/vlc_filter.h
+++ b/include/vlc_filter.h
@@ -77,6 +77,8 @@ struct filter_t
es_format_t fmt_out;
bool b_allow_fmt_out_change;
+ /* Name of the "video filter" shortcut that is requested, can be NULL */
+ const char * psz_name;
/* Filter configuration */
config_chain_t * p_cfg;
diff --git a/src/misc/filter_chain.c b/src/misc/filter_chain.c
index ae0316af73..a3b8a512b0 100644
--- a/src/misc/filter_chain.c
+++ b/src/misc/filter_chain.c
@@ -205,6 +205,7 @@ static filter_t *filter_chain_AppendInner( filter_chain_t *chain,
es_format_Copy( &filter->fmt_out, fmt_out );
filter->b_allow_fmt_out_change = chain->b_allow_fmt_out_change;
filter->p_cfg = cfg;
+ filter->psz_name = name;
filter->owner = chain->callbacks;
filter->owner.sys = chain;
More information about the vlc-commits
mailing list