[vlc-commits] chroma: chain: use const params

Thomas Guillem git at videolan.org
Mon Mar 19 18:30:06 CET 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Mar 19 13:47:54 2018 +0100| [288b9abe9fcb4ff39fafc7482193194cb2d37637] | committer: Thomas Guillem

chroma: chain: use const params

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=288b9abe9fcb4ff39fafc7482193194cb2d37637
---

 modules/video_chroma/chain.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/modules/video_chroma/chain.c b/modules/video_chroma/chain.c
index cc8b0c3496..3542559679 100644
--- a/modules/video_chroma/chain.c
+++ b/modules/video_chroma/chain.c
@@ -61,8 +61,9 @@ static int BuildChromaResize( filter_t * );
 static int BuildChromaChain( filter_t *p_filter );
 static int BuildFilterChain( filter_t *p_filter );
 
-static int CreateChain( filter_t *p_parent, es_format_t *p_fmt_mid );
-static filter_t * AppendTransform( filter_chain_t *p_chain, es_format_t *p_fmt_in, es_format_t *p_fmt_out );
+static int CreateChain( filter_t *p_parent, const es_format_t *p_fmt_mid );
+static filter_t * AppendTransform( filter_chain_t *p_chain, const es_format_t *p_fmt_in,
+                                   const es_format_t *p_fmt_out );
 static void EsFormatMergeSize( es_format_t *p_dst,
                                const es_format_t *p_base,
                                const es_format_t *p_size );
@@ -411,7 +412,7 @@ static int BuildFilterChain( filter_t *p_filter )
 /*****************************************************************************
  *
  *****************************************************************************/
-static int CreateChain( filter_t *p_parent, es_format_t *p_fmt_mid )
+static int CreateChain( filter_t *p_parent, const es_format_t *p_fmt_mid )
 {
     filter_chain_Reset( p_parent->p_sys->p_chain, &p_parent->fmt_in, &p_parent->fmt_out );
 
@@ -452,7 +453,8 @@ error:
     return VLC_EGENERIC;
 }
 
-static filter_t * AppendTransform( filter_chain_t *p_chain, es_format_t *p_fmt1, es_format_t *p_fmt2 )
+static filter_t * AppendTransform( filter_chain_t *p_chain, const es_format_t *p_fmt1,
+                                   const es_format_t *p_fmt2 )
 {
     video_transform_t transform = video_format_GetTransform(p_fmt1->video.orientation, p_fmt2->video.orientation);
 



More information about the vlc-commits mailing list