[vlc-commits] filter_chain: filter_chain_GetFmtOut can use a const input
Steve Lhomme
git at videolan.org
Tue Dec 11 16:19:33 CET 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Dec 11 14:38:54 2018 +0100| [834f031326298e1f84951d8b7a08387bbb36c340] | committer: Steve Lhomme
filter_chain: filter_chain_GetFmtOut can use a const input
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=834f031326298e1f84951d8b7a08387bbb36c340
---
include/vlc_filter.h | 2 +-
src/misc/filter_chain.c | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/include/vlc_filter.h b/include/vlc_filter.h
index 8c3763e8cb..b2a8f871a4 100644
--- a/include/vlc_filter.h
+++ b/include/vlc_filter.h
@@ -408,7 +408,7 @@ VLC_API bool filter_chain_IsEmpty(const filter_chain_t *chain);
*
* \param chain filter chain
*/
-VLC_API const es_format_t *filter_chain_GetFmtOut(filter_chain_t *chain);
+VLC_API const es_format_t *filter_chain_GetFmtOut(const filter_chain_t *chain);
/**
* Apply the filter chain to a video picture.
diff --git a/src/misc/filter_chain.c b/src/misc/filter_chain.c
index 08bbcb60f8..1ad58b4031 100644
--- a/src/misc/filter_chain.c
+++ b/src/misc/filter_chain.c
@@ -381,9 +381,8 @@ bool filter_chain_IsEmpty(const filter_chain_t *chain)
return chain->first == NULL;
}
-const es_format_t *filter_chain_GetFmtOut( filter_chain_t *p_chain )
+const es_format_t *filter_chain_GetFmtOut( const filter_chain_t *p_chain )
{
-
if( p_chain->b_allow_fmt_out_change )
return &p_chain->fmt_out;
More information about the vlc-commits
mailing list