From cef3fb5fc3b5729d06e7505d68d803d19bcc1bf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 10 May 2014 22:46:51 +0200 Subject: [PATCH] omxaudiosink: Fix format string compiler warnings --- omx/gstomxaudiosink.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/omx/gstomxaudiosink.c b/omx/gstomxaudiosink.c index f9330779bd..e28d23eaa3 100644 --- a/omx/gstomxaudiosink.c +++ b/omx/gstomxaudiosink.c @@ -239,7 +239,7 @@ gst_omx_audio_sink_volume_set (GstOMXAudioSink * self, gdouble volume) OMX_IndexConfigAudioVolume, ¶m); if (err != OMX_ErrorNone) { GST_ERROR_OBJECT (self, "Failed to set volume to %d: %s (0x%08x)", - param.sVolume.nValue, gst_omx_error_to_string (err), err); + (gint) param.sVolume.nValue, gst_omx_error_to_string (err), err); } } self->volume = volume; @@ -518,14 +518,14 @@ gst_omx_audio_sink_configure_pcm (GstOMXAudioSink * self, } GST_DEBUG_OBJECT (self, "Setting PCM parameters"); - GST_DEBUG_OBJECT (self, " nChannels: %d", param.nChannels); + GST_DEBUG_OBJECT (self, " nChannels: %u", (guint) param.nChannels); GST_DEBUG_OBJECT (self, " eNumData: %s", (param.eNumData == OMX_NumericalDataSigned ? "signed" : "unsigned")); GST_DEBUG_OBJECT (self, " eEndian: %s", (param.eEndian == OMX_EndianLittle ? "little endian" : "big endian")); GST_DEBUG_OBJECT (self, " bInterleaved: %d", param.bInterleaved); - GST_DEBUG_OBJECT (self, " nBitPerSample: %d", param.nBitPerSample); - GST_DEBUG_OBJECT (self, " nSamplingRate: %d", param.nSamplingRate); + GST_DEBUG_OBJECT (self, " nBitPerSample: %u", (guint) param.nBitPerSample); + GST_DEBUG_OBJECT (self, " nSamplingRate: %u", (guint) param.nSamplingRate); GST_DEBUG_OBJECT (self, " ePCMMode: %04x", param.ePCMMode); GST_DEBUG_OBJECT (self, " eChannelMapping: {%s, %s, %s, %s, %s, %s, %s, %s}", ch2str (param.eChannelMapping[0]), ch2str (param.eChannelMapping[1]), @@ -565,8 +565,8 @@ gst_omx_audio_sink_prepare (GstAudioSink * audiosink, port_def.format.audio.eEncoding = OMX_AUDIO_CodingPCM; GST_DEBUG_OBJECT (self, "Updating outport port definition"); - GST_DEBUG_OBJECT (self, " nBufferSize: %d", port_def.nBufferSize); - GST_DEBUG_OBJECT (self, " nBufferCountActual: %d", + GST_DEBUG_OBJECT (self, " nBufferSize: %u", (guint) port_def.nBufferSize); + GST_DEBUG_OBJECT (self, " nBufferCountActual: %u", (guint) port_def.nBufferCountActual); GST_DEBUG_OBJECT (self, " audio.eEncoding: 0x%08x", port_def.format.audio.eEncoding); @@ -901,7 +901,7 @@ gst_omx_audio_sink_delay (GstAudioSink * audiosink) param.nU32 = 0; } - GST_DEBUG_OBJECT (self, "reported delay %d samples", param.nU32); + GST_DEBUG_OBJECT (self, "reported delay %u samples", (guint) param.nU32); return param.nU32; }