From: Tim-Philipp Müller Date: Tue, 22 Nov 2011 01:21:04 +0000 (+0000) Subject: Fix some more printf format warnings X-Git-Tag: 1.19.3~511^2~7112 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e8fb8cb52351b0acea2c022a9397da9748daa336;p=platform%2Fupstream%2Fgstreamer.git Fix some more printf format warnings --- diff --git a/ext/libvisual/visual.c b/ext/libvisual/visual.c index c94e901..6f6d65b 100644 --- a/ext/libvisual/visual.c +++ b/ext/libvisual/visual.c @@ -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); diff --git a/ext/vorbis/gstvorbisdec.c b/ext/vorbis/gstvorbisdec.c index c467748..45c840a 100644 --- a/ext/vorbis/gstvorbisdec.c +++ b/ext/vorbis/gstvorbisdec.c @@ -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: diff --git a/ext/vorbis/gstvorbisenc.c b/ext/vorbis/gstvorbisenc.c index eae99a1..5a13ffd 100644 --- a/ext/vorbis/gstvorbisenc.c +++ b/ext/vorbis/gstvorbisenc.c @@ -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; }