From 41412f08eca9f1ad727bc8db6b1de599008e47ac Mon Sep 17 00:00:00 2001 From: Thijs Vermeir Date: Tue, 18 Dec 2012 16:56:28 +0100 Subject: [PATCH] opus: use appropriate printf format for gsize --- ext/opus/gstopusdec.c | 4 ++-- ext/opus/gstopusenc.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/opus/gstopusdec.c b/ext/opus/gstopusdec.c index ebef6e44e6..5b4a156865 100644 --- a/ext/opus/gstopusdec.c +++ b/ext/opus/gstopusdec.c @@ -390,7 +390,7 @@ opus_dec_chain_parse_data (GstOpusDec * dec, GstBuffer * buffer) } if (buffer) { - GST_DEBUG_OBJECT (dec, "Received buffer of size %u", + GST_DEBUG_OBJECT (dec, "Received buffer of size %" G_GSIZE_FORMAT, gst_buffer_get_size (buffer)); } else { GST_DEBUG_OBJECT (dec, "Received missing buffer"); @@ -414,7 +414,7 @@ opus_dec_chain_parse_data (GstOpusDec * dec, GstBuffer * buffer) gst_buffer_map (buf, &map, GST_MAP_READ); data = map.data; size = map.size; - GST_DEBUG_OBJECT (dec, "Using buffer of size %u", size); + GST_DEBUG_OBJECT (dec, "Using buffer of size %" G_GSIZE_FORMAT, size); } else { /* concealment data, pass NULL as the bits parameters */ GST_DEBUG_OBJECT (dec, "Using NULL buffer"); diff --git a/ext/opus/gstopusenc.c b/ext/opus/gstopusenc.c index 142701b35d..d6dfa9d173 100644 --- a/ext/opus/gstopusenc.c +++ b/ext/opus/gstopusenc.c @@ -898,7 +898,7 @@ gst_opus_enc_handle_frame (GstAudioEncoder * benc, GstBuffer * buf) enc->header_sent = TRUE; } - GST_DEBUG_OBJECT (enc, "received buffer %p of %u bytes", buf, + GST_DEBUG_OBJECT (enc, "received buffer %p of %" G_GSIZE_FORMAT " bytes", buf, buf ? gst_buffer_get_size (buf) : 0); ret = gst_opus_enc_encode (enc, buf);