summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2013-08-20 16:00:07 +0100
committerTim-Philipp Müller <tim@centricular.net>2013-08-20 16:00:07 +0100
commit498b74ab6a779570cdcc2300d732a387dfe07dcf (patch)
tree6676077dc84cb9916da1686097ed5da18217932d
parent5ba55b6c9aad49858304a38e0ab475c1ecafd646 (diff)
omx: don't use the 'z' modifier to print size_t
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
-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 4a81de9..4e94712 100644
--- a/omx/gstomx.c
+++ b/omx/gstomx.c
@@ -1629,7 +1629,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 74a71d4..bb2542d 100644
--- a/omx/gstomxvideodec.c
+++ b/omx/gstomxvideodec.c
@@ -3015,8 +3015,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 > %u)",
- gst_buffer_get_size (codec_data),
+ ("codec_data larger than supported by OpenMAX port "
+ "(%" G_GSIZE_FORMAT " > %u)", gst_buffer_get_size (codec_data),
(guint) self->dec_in_port->port_def.nBufferSize));
return GST_FLOW_ERROR;
}