ext: fix more printf format warnings in debug messages

This commit is contained in:
Tim-Philipp Müller 2011-11-23 23:29:03 +00:00
parent 4b57b9288b
commit 875c41011e
4 changed files with 9 additions and 7 deletions

View file

@ -258,7 +258,8 @@ gst_amrnbenc_handle_frame (GstAudioEncoder * enc, GstBuffer * buffer)
if (G_UNLIKELY (in_size < 320)) {
gst_buffer_unmap (buffer, in_data, in_size);
GST_DEBUG_OBJECT (amrnbenc, "discarding trailing data %d", in_size);
GST_DEBUG_OBJECT (amrnbenc, "discarding trailing data of %" G_GSIZE_FORMAT
" bytes", in_size);
return gst_audio_encoder_finish_frame (enc, NULL, -1);
}
@ -274,7 +275,7 @@ gst_amrnbenc_handle_frame (GstAudioEncoder * enc, GstBuffer * buffer)
in_data, out_data, 0);
gst_buffer_unmap (out, out_data, out_size);
GST_LOG_OBJECT (amrnbenc, "output data size %d", out_size);
GST_LOG_OBJECT (amrnbenc, "output data size %" G_GSIZE_FORMAT, out_size);
if (out_size) {
ret = gst_audio_encoder_finish_frame (enc, out, 160);

View file

@ -1218,7 +1218,8 @@ gst_dvd_read_src_do_seek (GstBaseSrc * basesrc, GstSegment * s)
if (s->format == sector_format) {
gint first, last;
gst_dvd_read_src_get_sector_bounds (src, &first, &last);
GST_DEBUG_OBJECT (src, "Format is sector, seeking to %d", s->position);
GST_DEBUG_OBJECT (src, "Format is sector, seeking to %" G_GINT64_FORMAT,
s->position);
src->cur_pack = s->position;
if (src->cur_pack < first)
src->cur_pack = first;

View file

@ -556,8 +556,8 @@ gst_lamemp3enc_handle_frame (GstAudioEncoder * enc, GstBuffer * in_buf)
}
gst_buffer_unmap (in_buf, data, size);
GST_LOG_OBJECT (lame, "encoded %d bytes of audio to %d bytes of mp3",
size, mp3_size);
GST_LOG_OBJECT (lame, "encoded %" G_GSIZE_FORMAT " bytes of audio "
"to %d bytes of mp3", size, mp3_size);
if (G_LIKELY (mp3_size > 0)) {
gst_buffer_unmap (mp3_buf, mp3_data, mp3_size);

View file

@ -687,8 +687,8 @@ gst_two_lame_handle_frame (GstAudioEncoder * enc, GstBuffer * buf)
num_samples / twolame->num_channels, mp3_data, mp3_buffer_size);
}
GST_LOG_OBJECT (twolame, "encoded %d bytes of audio to %d bytes of mp3",
size, mp3_size);
GST_LOG_OBJECT (twolame, "encoded %" G_GSIZE_FORMAT " bytes of audio "
"to %d bytes of mp3", size, mp3_size);
gst_buffer_unmap (buf, data, -1);
gst_buffer_unmap (mp3_buf, mp3_data, -1);