summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2013-08-20 16:00:07 +0100
committerJosep Torra <n770galaxy@gmail.com>2013-09-28 14:26:14 +0200
commit40bf004fe6bdaa12b262a9b9924d069c17143f8e (patch)
treee849d6c67394f4ec043fff535cc4854f3b8f13ea
parent2e676dda3b96e58f017fd7b7db0f1a7a4b186141 (diff)
omx: don't use the 'z' modifier to print size_t0.10
gcc will warn in some cases even if the size of the type is exactly that of size_t on the platform. https://bugzilla.gnome.org/show_bug.cgi?id=699008 Conflicts: omx/gstomxvideodec.c
-rw-r--r--omx/gstomx.c2
-rw-r--r--omx/gstomxvideodec.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/omx/gstomx.c b/omx/gstomx.c
index 2541799..fcc2fd1 100644
--- a/omx/gstomx.c
+++ b/omx/gstomx.c
@@ -1634,7 +1634,7 @@ gst_omx_port_allocate_buffers_unlocked (GstOMXPort * port,
OMX_ErrorBadParameter);
GST_INFO_OBJECT (comp->parent,
- "Allocating %d buffers of size %zu for %s port %u", n,
+ "Allocating %d buffers of size %" G_GSIZE_FORMAT " for %s port %u", n,
(size_t) port->port_def.nBufferSize, comp->name, (guint) port->index);
if (!port->buffers)
diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c
index 8921fb5..6089c5f 100644
--- a/omx/gstomxvideodec.c
+++ b/omx/gstomxvideodec.c
@@ -2399,8 +2399,8 @@ too_large_codec_data:
{
gst_video_codec_frame_unref (frame);
GST_ELEMENT_ERROR (self, STREAM, FORMAT, (NULL),
- ("codec_data larger than supported by OpenMAX port (%zu > %zu)",
- GST_BUFFER_SIZE (codec_data),
+ ("codec_data larger than supported by OpenMAX port "
+ "(%" G_GSIZE_FORMAT " > %u)", GST_BUFFER_SIZE (codec_data),
(guint) self->dec_in_port->port_def.nBufferSize));
return GST_FLOW_ERROR;
}