Fix some more printf format warnings
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 22 Nov 2011 01:21:04 +0000 (01:21 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 22 Nov 2011 01:21:04 +0000 (01:21 +0000)
ext/libvisual/visual.c
ext/vorbis/gstvorbisdec.c
ext/vorbis/gstvorbisenc.c

index c94e901..6f6d65b 100644 (file)
@@ -707,7 +707,7 @@ gst_visual_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer)
   channels = GST_AUDIO_INFO_CHANNELS (&visual->info);
 
   GST_DEBUG_OBJECT (visual,
-      "Input buffer has %d samples, time=%" G_GUINT64_FORMAT,
+      "Input buffer has %" G_GSIZE_FORMAT " samples, time=%" G_GUINT64_FORMAT,
       gst_buffer_get_size (buffer) / bpf, GST_BUFFER_TIMESTAMP (buffer));
 
   gst_adapter_push (visual->adapter, buffer);
index c467748..45c840a 100644 (file)
@@ -561,8 +561,8 @@ vorbis_handle_data_packet (GstVorbisDec * vd, ogg_packet * packet,
 #endif
 
   size = sample_count * vd->info.bpf;
-  GST_LOG_OBJECT (vd, "%d samples ready for reading, size %d", sample_count,
-      size);
+  GST_LOG_OBJECT (vd, "%d samples ready for reading, size %" G_GSIZE_FORMAT,
+      sample_count, size);
 
   /* alloc buffer for it */
   out = gst_buffer_new_allocate (NULL, size, 0);
@@ -583,7 +583,7 @@ vorbis_handle_data_packet (GstVorbisDec * vd, ogg_packet * packet,
       sample_count, vd->info.channels);
 #endif
 
-  GST_LOG_OBJECT (vd, "setting output size to %d", size);
+  GST_LOG_OBJECT (vd, "setting output size to %" G_GSIZE_FORMAT, size);
   gst_buffer_unmap (out, data, size);
 
 done:
index eae99a1..5a13ffd 100644 (file)
@@ -579,7 +579,7 @@ gst_vorbis_enc_buffer_from_header_packet (GstVorbisEnc * vorbisenc,
   GST_BUFFER_TIMESTAMP (outbuf) = GST_CLOCK_TIME_NONE;
   GST_BUFFER_DURATION (outbuf) = GST_CLOCK_TIME_NONE;
 
-  GST_DEBUG ("created header packet buffer, %d bytes",
+  GST_DEBUG ("created header packet buffer, %" G_GSIZE_FORMAT " bytes",
       gst_buffer_get_size (outbuf));
   return outbuf;
 }