From 812e24b06f159bee774255856c6d763e8025d8ee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 7 Apr 2017 14:27:23 +0300 Subject: [PATCH] omxvideoenc: Fix compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit gstomxvideoenc.c: In function ‘gst_omx_video_enc_fill_buffer’: CC libgstomx_la-gstomxaacdec.lo gstomxvideoenc.c:1316:27: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 8 has type ‘OMX_U32 {aka long unsigned int}’ [-Wformat=] GST_LOG_OBJECT (self, "Matched strides - direct copy %u bytes", ^ outbuf->omx_buf->nFilledLen); ~~~~~~~~~~~~~~~~~~ --- omx/gstomxvideoenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omx/gstomxvideoenc.c b/omx/gstomxvideoenc.c index cd1320d..083be6a 100644 --- a/omx/gstomxvideoenc.c +++ b/omx/gstomxvideoenc.c @@ -1314,7 +1314,7 @@ gst_omx_video_enc_fill_buffer (GstOMXVideoEnc * self, GstBuffer * inbuf, outbuf->omx_buf->nFilledLen = gst_buffer_get_size (inbuf); GST_LOG_OBJECT (self, "Matched strides - direct copy %u bytes", - outbuf->omx_buf->nFilledLen); + (guint) outbuf->omx_buf->nFilledLen); gst_buffer_extract (inbuf, 0, outbuf->omx_buf->pBuffer + outbuf->omx_buf->nOffset, -- 2.7.4