opus: use appropriate printf format for gsize

This commit is contained in:
Thijs Vermeir 2012-12-18 16:56:28 +01:00
parent 471ad809f6
commit 05dfea2689
3 changed files with 6 additions and 6 deletions

View file

@ -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");

View file

@ -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);

View file

@ -139,7 +139,7 @@ gst_opus_parse_handle_frame (GstBaseParse * base,
{
GstOpusParse *parse;
guint8 *data;
gint size;
gsize size;
guint32 packet_size;
int ret = FALSE;
const unsigned char *frames[48];
@ -214,8 +214,8 @@ gst_opus_parse_handle_frame (GstBaseParse * base,
size = payload_offset;
}
GST_DEBUG_OBJECT (parse, "Got Opus packet at offset %d, %d bytes", *skip,
size);
GST_DEBUG_OBJECT (parse,
"Got Opus packet at offset %d, %" G_GSIZE_FORMAT " bytes", *skip, size);
ret = TRUE;
beach: