From f854836f5c7aac4354c996160942c3c2dd5601e0 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Fri, 9 Oct 2009 14:21:09 +0300 Subject: buikd: explicitely cast, to tell some compilers that this is not long int --- gst/rtp/gstrtph263pay.c | 11 ++++++----- gst/rtp/gstrtpvrawpay.c | 3 ++- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'gst') diff --git a/gst/rtp/gstrtph263pay.c b/gst/rtp/gstrtph263pay.c index d819e4c4..2394b0fb 100644 --- a/gst/rtp/gstrtph263pay.c +++ b/gst/rtp/gstrtph263pay.c @@ -708,7 +708,7 @@ gst_rtp_h263_pay_gobfinder (GstRtpH263Pay * rtph263pay, if ((current[i] == 0x0) && (current[i + 1] == 0x0) && (current[i + 2] >> 7 == 0x1)) { GST_LOG ("GOB end found at: %p start: %p len: %u", current + i - 1, - boundry->end + 1, current + i - boundry->end + 2); + boundry->end + 1, (guint) (current + i - boundry->end + 2)); gst_rtp_h263_pay_boundry_init (boundry, boundry->end + 1, current + i - 1, 0, 0); @@ -924,8 +924,9 @@ gst_rtp_h263_pay_move_window_right (GstRtpH263PayContext * context, guint n, } else { if (n > rest_bits) { context->window = - (context->window << rest_bits) | (*context-> - win_end & (((guint) pow (2.0, (double) rest_bits)) - 1)); + (context-> + window << rest_bits) | (*context->win_end & (((guint) pow (2.0, + (double) rest_bits)) - 1)); n -= rest_bits; rest_bits = 0; } else { @@ -1686,8 +1687,8 @@ gst_rtp_h263_pay_flush (GstRtpH263Pay * rtph263pay) gst_rtp_h263_pay_boundry_init (&bound, NULL, rtph263pay->data - 1, 0, 0); context->gobs = - (GstRtpH263PayGob **) g_malloc0 (format_props[context->piclayer-> - ptype_srcformat][0] * sizeof (GstRtpH263PayGob *)); + (GstRtpH263PayGob **) g_malloc0 (format_props[context-> + piclayer->ptype_srcformat][0] * sizeof (GstRtpH263PayGob *)); for (i = 0; i < format_props[context->piclayer->ptype_srcformat][0]; i++) { diff --git a/gst/rtp/gstrtpvrawpay.c b/gst/rtp/gstrtpvrawpay.c index 01537fe4..bc968fbe 100644 --- a/gst/rtp/gstrtpvrawpay.c +++ b/gst/rtp/gstrtpvrawpay.c @@ -502,7 +502,8 @@ gst_rtp_vraw_pay_handle_buffer (GstBaseRTPPayload * payload, GstBuffer * buffer) if (!cont) break; } - GST_LOG_OBJECT (rtpvrawpay, "consumed %u bytes", outdata - headers); + GST_LOG_OBJECT (rtpvrawpay, "consumed %u bytes", + (guint) (outdata - headers)); /* second pass, read headers and write the data */ while (TRUE) { -- cgit