/* the ident header has a fixed length */
if (size != CMML_IDENT_HEADER_SIZE) {
GST_ELEMENT_ERROR (dec, STREAM, DECODE,
- (NULL), ("wrong ident header size: %d", size));
+ (NULL), ("wrong ident header size: %" G_GSIZE_FORMAT, size));
dec->flow_return = GST_FLOW_ERROR;
return;
return FALSE;
header_buf = g_value_dup_boxed (header_val);
- GST_INFO_OBJECT (dec, "pushing header buffer of %d bytes into adapter",
- gst_buffer_get_size (header_buf));
+ GST_INFO_OBJECT (dec, "pushing header buffer of %" G_GSIZE_FORMAT " bytes "
+ "into adapter", gst_buffer_get_size (header_buf));
gst_adapter_push (flacdec->adapter, header_buf);
}
return FLAC__STREAM_DECODER_READ_STATUS_ABORT;
}
- GST_LOG_OBJECT (dec, "feeding %u bytes to decoder (available=%u, bytes=%u)",
+ GST_LOG_OBJECT (dec, "feeding %u bytes to decoder "
+ "(available=%" G_GSIZE_FORMAT ", bytes=%u)",
len, gst_adapter_available (dec->adapter), (guint) * bytes);
gst_adapter_copy (dec->adapter, buffer, 0, len);
*bytes = len;
return GST_FLOW_OK;
}
- GST_LOG_OBJECT (dec, "frame: ts %" GST_TIME_FORMAT ", flags 0x%04x, %u bytes",
- GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buf)), GST_BUFFER_FLAGS (buf),
- gst_buffer_get_size (buf));
+ GST_LOG_OBJECT (dec, "frame: ts %" GST_TIME_FORMAT ", flags 0x%04x, "
+ "%" G_GSIZE_FORMAT " bytes", GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buf)),
+ GST_BUFFER_FLAGS (buf), gst_buffer_get_size (buf));
/* drop any in-stream headers, we've processed those in set_format already */
if (G_UNLIKELY (!dec->got_headers)) {
gst_buffer_unmap (buf, data, size);
if (!got_audio_frame) {
- GST_INFO_OBJECT (dec, "dropping in-stream header, %d bytes", size);
+ GST_INFO_OBJECT (dec, "dropping in-stream header, %" G_GSIZE_FORMAT " "
+ "bytes", size);
gst_audio_decoder_finish_frame (audio_dec, NULL, 1);
return GST_FLOW_OK;
}
dec->last_flow = GST_FLOW_OK;
/* framed - there should always be enough data to decode something */
- GST_LOG_OBJECT (dec, "%u bytes available",
+ GST_LOG_OBJECT (dec, "%" G_GSIZE_FORMAT " bytes available",
gst_adapter_available (dec->adapter));
if (!FLAC__stream_decoder_process_single (dec->decoder)) {
GstBuffer *buf;
buf = GST_BUFFER (l->data);
- GST_LOG_OBJECT (enc, "Pushing header buffer, size %u bytes",
+ GST_LOG_OBJECT (enc,
+ "Pushing header buffer, size %" G_GSIZE_FORMAT " bytes",
gst_buffer_get_size (buf));
#if 0
GST_MEMDUMP_OBJECT (enc, "header buffer", GST_BUFFER_DATA (buf),
tag->metadata_last_block = is_last;
GST_DEBUG_OBJECT (tag,
- "got metadata block: %d bytes, type %d, is vorbiscomment: %d, is last: %d",
+ "got metadata block: %" G_GSIZE_FORMAT " bytes, type %d, "
+ "is vorbiscomment: %d, is last: %d",
size, type, (type == 0x04), is_last);
/* Metadata blocks of type 4 are vorbis comment blocks */
data[3] = ((size - 4) & 0x0000FF);
gst_buffer_unmap (buffer, data, size);
- GST_DEBUG_OBJECT (tag, "pushing %d byte vorbiscomment buffer", size);
+ GST_DEBUG_OBJECT (tag, "pushing %" G_GSIZE_FORMAT " byte vorbiscomment "
+ "buffer", size);
ret = gst_pad_push (tag->srcpad, buffer);
if (ret != GST_FLOW_OK) {
* be a real world problem though
*/
GST_ELEMENT_ERROR (tag, CORE, TAG, (NULL),
- ("Vorbis comment of size %d too long", size));
+ ("Vorbis comment of size %" G_GSIZE_FORMAT " too long", size));
ret = GST_FLOW_ERROR;
goto cleanup;
}
(dec->segment.stop != -1) &&
(gst_adapter_available (dec->adapter) < dec->segment.stop)) {
/* We assume that non-packetized input in bytes is *one* single jpeg image */
- GST_DEBUG ("Non-packetized mode. Got %d bytes, need %" G_GINT64_FORMAT,
- gst_adapter_available (dec->adapter), dec->segment.stop);
+ GST_DEBUG ("Non-packetized mode. Got %" G_GSIZE_FORMAT " bytes, "
+ "need %" G_GINT64_FORMAT, gst_adapter_available (dec->adapter),
+ dec->segment.stop);
goto need_more_data;
}
fpp = dec->header->frames_per_packet;
bits = &dec->bits;
- GST_DEBUG_OBJECT (dec, "received buffer of size %u, fpp %d, %d bits",
- size, fpp, speex_bits_remaining (bits));
+ GST_DEBUG_OBJECT (dec, "received buffer of size %" G_GSIZE_FORMAT
+ ", fpp %d, %d bits", size, fpp, speex_bits_remaining (bits));
} else {
/* FIXME ? actually consider how much concealment is needed */
/* concealment data, pass NULL as the bits parameters */
static GstFlowReturn
gst_speex_enc_push_buffer (GstSpeexEnc * enc, GstBuffer * buffer)
{
- GST_DEBUG_OBJECT (enc, "pushing output buffer of size %u",
+ GST_DEBUG_OBJECT (enc, "pushing output buffer of size %" G_GSIZE_FORMAT,
gst_buffer_get_size (buffer));
return gst_pad_push (GST_AUDIO_ENCODER_SRC_PAD (enc), buffer);
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_speex_enc_encode (enc, buf);
index = pool->num_allocated;
- GST_LOG_OBJECT (pool, "creating buffer %u, %p", index, newbuf, pool);
+ GST_LOG_OBJECT (pool, "creating buffer %u, %p", index, newbuf);
meta->vbuffer.index = index;
meta->vbuffer.type = obj->type;
if (!have_frame) {
GST_LOG_OBJECT (ximagesrc,
- "Copying from last frame ximage->size: %d",
+ "Copying from last frame ximage->size: %" G_GSIZE_FORMAT,
gst_buffer_get_size (ximage));
copy_buffer (ximage, ximagesrc->last_ximage);
have_frame = TRUE;
} while (XPending (ximagesrc->xcontext->disp));
if (!have_frame) {
GST_LOG_OBJECT (ximagesrc,
- "Copying from last frame ximage->size: %d",
+ "Copying from last frame ximage->size: %" G_GSIZE_FORMAT,
gst_buffer_get_size (ximage));
copy_buffer (ximage, ximagesrc->last_ximage);
}