Some printf variable format fixes

The osx compiler complains about those
This commit is contained in:
Thiago Santos 2012-05-31 18:39:25 -03:00
parent ca4b5d795b
commit 78ec03e32f
3 changed files with 9 additions and 8 deletions

View file

@ -279,7 +279,8 @@ gst_pngdec_caps_create_and_set (GstPngDec * pngdec)
png_get_IHDR (pngdec->png, pngdec->info, &width, &height, png_get_IHDR (pngdec->png, pngdec->info, &width, &height,
&bpc, &pngdec->color_type, NULL, NULL, NULL); &bpc, &pngdec->color_type, NULL, NULL, NULL);
GST_LOG_OBJECT (pngdec, "this is a %dx%d PNG image", width, height); GST_LOG_OBJECT (pngdec, "this is a %dx%d PNG image", (gint) width,
(gint) height);
switch (pngdec->color_type) { switch (pngdec->color_type) {
case PNG_COLOR_TYPE_RGB: case PNG_COLOR_TYPE_RGB:
@ -343,7 +344,7 @@ gst_pngdec_handle_frame (GstVideoDecoder * decoder, GstVideoCodecFrame * frame)
GstFlowReturn ret = GST_FLOW_OK; GstFlowReturn ret = GST_FLOW_OK;
GST_LOG_OBJECT (pngdec, "Got buffer, size=%u", GST_LOG_OBJECT (pngdec, "Got buffer, size=%u",
gst_buffer_get_size (frame->input_buffer)); (guint) gst_buffer_get_size (frame->input_buffer));
/* Let libpng come back here on error */ /* Let libpng come back here on error */
if (setjmp (png_jmpbuf (pngdec->png))) { if (setjmp (png_jmpbuf (pngdec->png))) {

View file

@ -426,8 +426,8 @@ gst_rtp_h264_set_src_caps (GstRtpH264Depay * rtph264depay)
gst_buffer_map (g_ptr_array_index (rtph264depay->sps, i), &nalmap, gst_buffer_map (g_ptr_array_index (rtph264depay->sps, i), &nalmap,
GST_MAP_READ); GST_MAP_READ);
GST_DEBUG_OBJECT (rtph264depay, "copy SPS %d of length %d", i, GST_DEBUG_OBJECT (rtph264depay, "copy SPS %d of length %u", i,
nalmap.size); (guint) nalmap.size);
GST_WRITE_UINT16_BE (data, nalmap.size); GST_WRITE_UINT16_BE (data, nalmap.size);
data += 2; data += 2;
memcpy (data, nalmap.data, nalmap.size); memcpy (data, nalmap.data, nalmap.size);
@ -442,8 +442,8 @@ gst_rtp_h264_set_src_caps (GstRtpH264Depay * rtph264depay)
gst_buffer_map (g_ptr_array_index (rtph264depay->pps, i), &nalmap, gst_buffer_map (g_ptr_array_index (rtph264depay->pps, i), &nalmap,
GST_MAP_READ); GST_MAP_READ);
GST_DEBUG_OBJECT (rtph264depay, "copy PPS %d of length %d", i, GST_DEBUG_OBJECT (rtph264depay, "copy PPS %d of length %u", i,
nalmap.size); (guint) nalmap.size);
GST_WRITE_UINT16_BE (data, nalmap.size); GST_WRITE_UINT16_BE (data, nalmap.size);
data += 2; data += 2;
memcpy (data, nalmap.data, nalmap.size); memcpy (data, nalmap.data, nalmap.size);

View file

@ -162,8 +162,8 @@ gst_rtp_mp2t_pay_flush (GstRTPMP2TPay * rtpmp2tpay)
GST_BUFFER_TIMESTAMP (outbuf) = rtpmp2tpay->first_ts; GST_BUFFER_TIMESTAMP (outbuf) = rtpmp2tpay->first_ts;
GST_BUFFER_DURATION (outbuf) = rtpmp2tpay->duration; GST_BUFFER_DURATION (outbuf) = rtpmp2tpay->duration;
GST_DEBUG_OBJECT (rtpmp2tpay, "pushing buffer of size %d", GST_DEBUG_OBJECT (rtpmp2tpay, "pushing buffer of size %u",
gst_buffer_get_size (outbuf)); (guint) gst_buffer_get_size (outbuf));
ret = gst_rtp_base_payload_push (GST_RTP_BASE_PAYLOAD (rtpmp2tpay), outbuf); ret = gst_rtp_base_payload_push (GST_RTP_BASE_PAYLOAD (rtpmp2tpay), outbuf);
} }