summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2009-10-09 13:38:17 +0300
committerStefan Kost <ensonic@users.sf.net>2009-10-09 13:54:24 +0300
commitf41d7e7bd597dafadc3c61146b34a92f9d4f646f (patch)
treecb88fdddd4703af671b52a10388d6c51622d4bb7
parent696e350c7b088b337bd7034fedcd4fb3c01f27ef (diff)
build: don't cast, but use the right format specified instead
This correct some of the previous macos fixes.
-rw-r--r--ext/flac/gstflacdec.c2
-rw-r--r--gst/id3demux/id3tags.c10
-rw-r--r--gst/rtp/gstrtph263pay.c4
-rw-r--r--gst/rtp/gstrtpvrawpay.c3
4 files changed, 9 insertions, 10 deletions
diff --git a/ext/flac/gstflacdec.c b/ext/flac/gstflacdec.c
index 87077f56..5e9e8b7a 100644
--- a/ext/flac/gstflacdec.c
+++ b/ext/flac/gstflacdec.c
@@ -669,7 +669,7 @@ gst_flac_dec_seek (const FLAC__StreamDecoder * decoder,
flacdec = GST_FLAC_DEC (client_data);
- GST_DEBUG_OBJECT (flacdec, "seek %" G_GINT64_FORMAT, (gint64) position);
+ GST_DEBUG_OBJECT (flacdec, "seek %" G_GUINT64_FORMAT, position);
flacdec->offset = position;
return FLAC__STREAM_DECODER_SEEK_STATUS_OK;
diff --git a/gst/id3demux/id3tags.c b/gst/id3demux/id3tags.c
index cbfa6598..ecac8182 100644
--- a/gst/id3demux/id3tags.c
+++ b/gst/id3demux/id3tags.c
@@ -469,11 +469,11 @@ id3demux_id3v2_frames_to_tag_list (ID3TagsWorking * work, guint size)
#if 1
GST_LOG
- ("Frame @ %d (0x%02x) id %s size %d, next=%d (0x%02x) obsolete=%d",
- (gint) (work->hdr.frame_data - start),
- (gint) (work->hdr.frame_data - start), frame_id, frame_size,
- (gint) (work->hdr.frame_data + frame_hdr_size + frame_size - start),
- (gint) (work->hdr.frame_data + frame_hdr_size + frame_size - start),
+ ("Frame @ %u (0x%02x) id %s size %u, next=%u (0x%02x) obsolete=%d",
+ work->hdr.frame_data - start,
+ work->hdr.frame_data - start, frame_id, frame_size,
+ work->hdr.frame_data + frame_hdr_size + frame_size - start,
+ work->hdr.frame_data + frame_hdr_size + frame_size - start,
obsolete_id);
#define flag_string(flag,str) \
((frame_flags & (flag)) ? (str) : "")
diff --git a/gst/rtp/gstrtph263pay.c b/gst/rtp/gstrtph263pay.c
index fea83b2b..d819e4c4 100644
--- a/gst/rtp/gstrtph263pay.c
+++ b/gst/rtp/gstrtph263pay.c
@@ -707,8 +707,8 @@ gst_rtp_h263_pay_gobfinder (GstRtpH263Pay * rtph263pay,
for (i = 3; i < range - 3; i++) {
if ((current[i] == 0x0) &&
(current[i + 1] == 0x0) && (current[i + 2] >> 7 == 0x1)) {
- GST_LOG ("GOB end found at: %p start: %p len: %d", current + i - 1,
- boundry->end + 1, (gint) (current + i - boundry->end + 2));
+ GST_LOG ("GOB end found at: %p start: %p len: %u", current + i - 1,
+ boundry->end + 1, current + i - boundry->end + 2);
gst_rtp_h263_pay_boundry_init (boundry, boundry->end + 1,
current + i - 1, 0, 0);
diff --git a/gst/rtp/gstrtpvrawpay.c b/gst/rtp/gstrtpvrawpay.c
index 29053d78..01537fe4 100644
--- a/gst/rtp/gstrtpvrawpay.c
+++ b/gst/rtp/gstrtpvrawpay.c
@@ -502,8 +502,7 @@ gst_rtp_vraw_pay_handle_buffer (GstBaseRTPPayload * payload, GstBuffer * buffer)
if (!cont)
break;
}
- GST_LOG_OBJECT (rtpvrawpay, "consumed %d bytes",
- (gint) (outdata - headers));
+ GST_LOG_OBJECT (rtpvrawpay, "consumed %u bytes", outdata - headers);
/* second pass, read headers and write the data */
while (TRUE) {