ext: fix more printf format warnings in debug messages
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 23 Nov 2011 23:29:03 +0000 (23:29 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 23 Nov 2011 23:29:03 +0000 (23:29 +0000)
ext/amrnb/amrnbenc.c
ext/dvdread/dvdreadsrc.c
ext/lame/gstlamemp3enc.c
ext/twolame/gsttwolamemp2enc.c

index 6a1bda9..0dc3288 100644 (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);
index 940fc55..cb3d166 100644 (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;
index 42d63b4..282d9f6 100644 (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);
index 9c8b874..7e4882e 100644 (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);