From dd1a0cc30574e29c612df636985a9bdd47b8206f Mon Sep 17 00:00:00 2001 From: Julien Moutte Date: Tue, 20 Nov 2007 12:15:51 +0000 Subject: [PATCH] gst/realmedia/rtspreal.c: Fix build on Mac OS X. Original commit message from CVS: 2007-11-20 Julien MOUTTE * gst/realmedia/rtspreal.c: (rtsp_ext_real_parse_sdp): Fix build on Mac OS X. --- ChangeLog | 5 +++++ gst/realmedia/rtspreal.c | 34 ++++++++++++++++++++-------------- 2 files changed, 25 insertions(+), 14 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3c664d55db..4689e232e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-11-20 Julien MOUTTE + + * gst/realmedia/rtspreal.c: (rtsp_ext_real_parse_sdp): Fix build + on Mac OS X. + 2007-11-19 Jan Schmidt * gst/mpegaudioparse/gstmpegaudioparse.c: diff --git a/gst/realmedia/rtspreal.c b/gst/realmedia/rtspreal.c index c48f0f8c7c..db9a30682e 100644 --- a/gst/realmedia/rtspreal.c +++ b/gst/realmedia/rtspreal.c @@ -395,7 +395,8 @@ rtsp_ext_real_parse_sdp (GstRTSPExtension * ext, GstSDPMessage * sdp, READ_BUFFER_M (media, "OpaqueData", opaque_data, opaque_data_len); if (opaque_data_len < 4) { - GST_DEBUG_OBJECT (ctx, "opaque_data_len %d < 4", opaque_data_len); + GST_DEBUG_OBJECT (ctx, "opaque_data_len %" G_GSIZE_FORMAT " < 4", + opaque_data_len); goto strange_opaque_data; } if (strncmp (opaque_data, "MLTI", 4)) { @@ -408,7 +409,8 @@ rtsp_ext_real_parse_sdp (GstRTSPExtension * ext, GstSDPMessage * sdp, opaque_data_len -= 4; if (opaque_data_len < 2) { - GST_DEBUG_OBJECT (ctx, "opaque_data_len %d < 2", opaque_data_len); + GST_DEBUG_OBJECT (ctx, "opaque_data_len %" G_GSIZE_FORMAT " < 2", + opaque_data_len); goto strange_opaque_data; } stream->num_rules = GST_READ_UINT16_BE (opaque_data); @@ -421,15 +423,16 @@ rtsp_ext_real_parse_sdp (GstRTSPExtension * ext, GstSDPMessage * sdp, } if (opaque_data_len < 2 * sel) { - GST_DEBUG_OBJECT (ctx, "opaque_data_len %d < 2 * sel (%d)", - opaque_data_len, 2 * sel); + GST_DEBUG_OBJECT (ctx, "opaque_data_len %" G_GSIZE_FORMAT + " < 2 * sel (%d)", opaque_data_len, 2 * sel); goto strange_opaque_data; } opaque_data += 2 * sel; opaque_data_len -= 2 * sel; if (opaque_data_len < 2) { - GST_DEBUG_OBJECT (ctx, "opaque_data_len %d < 2", opaque_data_len); + GST_DEBUG_OBJECT (ctx, "opaque_data_len %" G_GSIZE_FORMAT " < 2", + opaque_data_len); goto strange_opaque_data; } stream->codec = GST_READ_UINT16_BE (opaque_data); @@ -437,15 +440,16 @@ rtsp_ext_real_parse_sdp (GstRTSPExtension * ext, GstSDPMessage * sdp, opaque_data_len -= 2; if (opaque_data_len < 2 * (stream->num_rules - sel - 1)) { - GST_DEBUG_OBJECT (ctx, "opaque_data_len %d < %d", opaque_data_len, - 2 * (stream->num_rules - sel - 1)); + GST_DEBUG_OBJECT (ctx, "opaque_data_len %" G_GSIZE_FORMAT + " < %d", opaque_data_len, 2 * (stream->num_rules - sel - 1)); goto strange_opaque_data; } opaque_data += 2 * (stream->num_rules - sel - 1); opaque_data_len -= 2 * (stream->num_rules - sel - 1); if (opaque_data_len < 2) { - GST_DEBUG_OBJECT (ctx, "opaque_data_len %d < 2", opaque_data_len); + GST_DEBUG_OBJECT (ctx, "opaque_data_len %" G_GSIZE_FORMAT " < 2", + opaque_data_len); goto strange_opaque_data; } stream->num_rules = GST_READ_UINT16_BE (opaque_data); @@ -460,7 +464,8 @@ rtsp_ext_real_parse_sdp (GstRTSPExtension * ext, GstSDPMessage * sdp, for (j = 0; j < stream->codec; j++) { if (opaque_data_len < 4) { - GST_DEBUG_OBJECT (ctx, "opaque_data_len %d < 4", opaque_data_len); + GST_DEBUG_OBJECT (ctx, "opaque_data_len %" G_GSIZE_FORMAT " < 4", + opaque_data_len); goto strange_opaque_data; } len = GST_READ_UINT32_BE (opaque_data); @@ -468,8 +473,8 @@ rtsp_ext_real_parse_sdp (GstRTSPExtension * ext, GstSDPMessage * sdp, opaque_data_len -= 4; if (opaque_data_len < len) { - GST_DEBUG_OBJECT (ctx, "opaque_data_len %d < len %d", opaque_data_len, - len); + GST_DEBUG_OBJECT (ctx, "opaque_data_len %" G_GSIZE_FORMAT " < len %d", + opaque_data_len, len); goto strange_opaque_data; } opaque_data += len; @@ -477,7 +482,8 @@ rtsp_ext_real_parse_sdp (GstRTSPExtension * ext, GstSDPMessage * sdp, } if (opaque_data_len < 4) { - GST_DEBUG_OBJECT (ctx, "opaque_data_len %d < 4", opaque_data_len); + GST_DEBUG_OBJECT (ctx, "opaque_data_len %" G_GSIZE_FORMAT " < 4", + opaque_data_len); goto strange_opaque_data; } stream->type_specific_data_len = GST_READ_UINT32_BE (opaque_data); @@ -485,8 +491,8 @@ rtsp_ext_real_parse_sdp (GstRTSPExtension * ext, GstSDPMessage * sdp, opaque_data_len -= 4; if (opaque_data_len < stream->type_specific_data_len) { - GST_DEBUG_OBJECT (ctx, "opaque_data_len %d < %d", opaque_data_len, - stream->type_specific_data_len); + GST_DEBUG_OBJECT (ctx, "opaque_data_len %" G_GSIZE_FORMAT " < %d", + opaque_data_len, stream->type_specific_data_len); goto strange_opaque_data; } stream->type_specific_data =