From e4e0d3ce02c5e9a6c79d4826fc52e743e0221fba Mon Sep 17 00:00:00 2001 From: Matej Knopp Date: Thu, 26 Jan 2012 06:58:46 -0500 Subject: [PATCH] Fix compiler warnings --- ext/voaacenc/gstvoaacenc.c | 3 ++- gst/dtmf/gstdtmfsrc.c | 2 +- gst/rtpmux/gstrtpmux.c | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ext/voaacenc/gstvoaacenc.c b/ext/voaacenc/gstvoaacenc.c index dd4b7ed9e9..8ae31a0fe8 100644 --- a/ext/voaacenc/gstvoaacenc.c +++ b/ext/voaacenc/gstvoaacenc.c @@ -490,7 +490,8 @@ gst_voaacenc_handle_frame (GstAudioEncoder * benc, GstBuffer * buf) goto encode_failed; } - GST_LOG_OBJECT (voaacenc, "encoded to %d bytes", output.Length); + GST_LOG_OBJECT (voaacenc, "encoded to %" G_GSIZE_FORMAT " bytes", + output.Length); gst_buffer_unmap (buf, &map); gst_buffer_unmap (out, &omap); gst_buffer_resize (out, 0, output.Length); diff --git a/gst/dtmf/gstdtmfsrc.c b/gst/dtmf/gstdtmfsrc.c index 9e3ea47a10..e5a8eef585 100644 --- a/gst/dtmf/gstdtmfsrc.c +++ b/gst/dtmf/gstdtmfsrc.c @@ -780,7 +780,7 @@ gst_dtmf_src_create (GstBaseSrc * basesrc, guint64 offset, buf = gst_dtmf_src_create_next_tone_packet (dtmfsrc, dtmfsrc->last_event); - GST_LOG_OBJECT (dtmfsrc, "Created buffer of size %d", + GST_LOG_OBJECT (dtmfsrc, "Created buffer of size %" G_GSIZE_FORMAT, gst_buffer_get_size (buf)); *buffer = buf; diff --git a/gst/rtpmux/gstrtpmux.c b/gst/rtpmux/gstrtpmux.c index 253f463fd6..de09fd488a 100644 --- a/gst/rtpmux/gstrtpmux.c +++ b/gst/rtpmux/gstrtpmux.c @@ -355,7 +355,8 @@ process_buffer_locked (GstRTPMux * rtp_mux, GstRTPMuxPadPrivate * padpriv, gst_rtp_buffer_set_ssrc (rtpbuffer, rtp_mux->current_ssrc); gst_rtp_mux_readjust_rtp_timestamp_locked (rtp_mux, padpriv, rtpbuffer); - GST_LOG_OBJECT (rtp_mux, "Pushing packet size %d, seq=%d, ts=%u", + GST_LOG_OBJECT (rtp_mux, + "Pushing packet size %" G_GSIZE_FORMAT ", seq=%d, ts=%u", rtpbuffer->map.size, rtp_mux->seqnum, gst_rtp_buffer_get_timestamp (rtpbuffer));