[vlc-devel] [PATCH 1/2] codec: omxil: fix unused variable warnings
Alexandre Janniaux
ajanni at videolabs.io
Wed Feb 19 00:18:54 CET 2020
---
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++ )
--
2.25.0
More information about the vlc-devel
mailing list