[vlc-commits] filter: remove filter_chain_New() constant parameter
Rémi Denis-Courmont
git at videolan.org
Mon Nov 14 19:26:22 CET 2016
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Nov 13 18:24:21 2016 +0200| [f961b58a6327d14820ff0571a6ba48efcfb0c207] | committer: Rémi Denis-Courmont
filter: remove filter_chain_New() constant parameter
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f961b58a6327d14820ff0571a6ba48efcfb0c207
---
include/vlc_filter.h | 5 ++---
src/misc/filter_chain.c | 5 ++---
src/video_output/vout_subpictures.c | 4 ++--
3 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/include/vlc_filter.h b/include/vlc_filter.h
index 799549d..1dde411 100644
--- a/include/vlc_filter.h
+++ b/include/vlc_filter.h
@@ -273,12 +273,11 @@ typedef struct filter_chain_t filter_chain_t;
*
* \param p_object pointer to a vlc object
* \param psz_capability vlc capability of filters in filter chain
- * \param b_allow_format_fmt_change allow changing of fmt
* \return pointer to a filter chain
*/
-filter_chain_t * filter_chain_New( vlc_object_t *, const char *, bool )
+filter_chain_t * filter_chain_New( vlc_object_t *, const char * )
VLC_USED;
-#define filter_chain_New( a, b, c ) filter_chain_New( VLC_OBJECT( a ), b, c )
+#define filter_chain_New( a, b ) filter_chain_New( VLC_OBJECT( a ), b )
/**
* Creates a new video filter chain.
diff --git a/src/misc/filter_chain.c b/src/misc/filter_chain.c
index 1efcbe3..ffeae7f 100644
--- a/src/misc/filter_chain.c
+++ b/src/misc/filter_chain.c
@@ -94,14 +94,13 @@ static filter_chain_t *filter_chain_NewInner( const filter_owner_t *callbacks,
/**
* Filter chain initialisation
*/
-filter_chain_t *filter_chain_New( vlc_object_t *obj, const char *cap,
- bool fmt_out_change )
+filter_chain_t *filter_chain_New( vlc_object_t *obj, const char *cap )
{
filter_owner_t callbacks = {
.sys = obj,
};
- return filter_chain_NewInner( &callbacks, cap, fmt_out_change, NULL );
+ return filter_chain_NewInner( &callbacks, cap, false, NULL );
}
/** Chained filter picture allocator function */
diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index cd423cb..6a40092 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -1212,8 +1212,8 @@ spu_t *spu_Create(vlc_object_t *object)
sys->filter_chain_update = NULL;
vlc_mutex_init(&sys->source_chain_lock);
vlc_mutex_init(&sys->filter_chain_lock);
- sys->source_chain = filter_chain_New(spu, "sub source", false);
- sys->filter_chain = filter_chain_New(spu, "sub filter", false);
+ sys->source_chain = filter_chain_New(spu, "sub source");
+ sys->filter_chain = filter_chain_New(spu, "sub filter");
/* Load text and scale module */
sys->text = SpuRenderCreateAndLoadText(spu);
More information about the vlc-commits
mailing list