[vlc-commits] codec: omxil: fix unused variable warnings

Alexandre Janniaux git at videolan.org
Thu Feb 20 10:09:52 CET 2020


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Wed Feb 19 00:18:54 2020 +0100| [5b0090e59b88d933bfe0fc2dd1ef91915adbc5cb] | committer: Thomas Guillem

codec: omxil: fix unused variable warnings

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 modules/codec/omxil/utils.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/modules/codec/omxil/utils.c b/modules/codec/omxil/utils.c
index b6a707751c..d83d6a2183 100644
--- a/modules/codec/omxil/utils.c
+++ b/modules/codec/omxil/utils.c
@@ -183,6 +183,11 @@ void ArchitectureSpecificCopyHooks( decoder_t *p_dec, int i_color_format,
         p_architecture_specific->data = p_surface_cache;
         p_dec->fmt_out.i_codec = VLC_CODEC_YV12;
     }
+#else
+    VLC_UNUSED(p_dec);
+    VLC_UNUSED(i_color_format);
+    VLC_UNUSED(i_src_stride);
+    VLC_UNUSED(p_architecture_specific);
 #endif
 }
 
@@ -197,6 +202,8 @@ void ArchitectureSpecificCopyHooksDestroy( int i_color_format,
         copy_cache_t *p_surface_cache = (copy_cache_t*)p_architecture_specific->data;
         CopyCleanCache(p_surface_cache);
     }
+#else
+    VLC_UNUSED(i_color_format);
 #endif
     free(p_architecture_specific->data);
     p_architecture_specific->data = NULL;
@@ -227,6 +234,8 @@ void CopyOmxPicture( int i_color_format, picture_t *p_pic,
         picture_SwapUV( p_pic );
         return;
     }
+#else
+    VLC_UNUSED(p_architecture_specific);
 #endif
 
     for( i_plane = 0; i_plane < p_pic->i_planes; i_plane++ )



More information about the vlc-commits mailing list