diff --git a/ext/libpng/gstpngdec.c b/ext/libpng/gstpngdec.c index e2c778c06d..7c4d558fbc 100644 --- a/ext/libpng/gstpngdec.c +++ b/ext/libpng/gstpngdec.c @@ -279,7 +279,8 @@ gst_pngdec_caps_create_and_set (GstPngDec * pngdec) png_get_IHDR (pngdec->png, pngdec->info, &width, &height, &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) { case PNG_COLOR_TYPE_RGB: @@ -343,7 +344,7 @@ gst_pngdec_handle_frame (GstVideoDecoder * decoder, GstVideoCodecFrame * frame) GstFlowReturn ret = GST_FLOW_OK; 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 */ if (setjmp (png_jmpbuf (pngdec->png))) { diff --git a/gst/rtp/gstrtph264depay.c b/gst/rtp/gstrtph264depay.c index 7c839b4c23..1739c2d195 100644 --- a/gst/rtp/gstrtph264depay.c +++ b/gst/rtp/gstrtph264depay.c @@ -426,8 +426,8 @@ gst_rtp_h264_set_src_caps (GstRtpH264Depay * rtph264depay) gst_buffer_map (g_ptr_array_index (rtph264depay->sps, i), &nalmap, GST_MAP_READ); - GST_DEBUG_OBJECT (rtph264depay, "copy SPS %d of length %d", i, - nalmap.size); + GST_DEBUG_OBJECT (rtph264depay, "copy SPS %d of length %u", i, + (guint) nalmap.size); GST_WRITE_UINT16_BE (data, nalmap.size); data += 2; 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_MAP_READ); - GST_DEBUG_OBJECT (rtph264depay, "copy PPS %d of length %d", i, - nalmap.size); + GST_DEBUG_OBJECT (rtph264depay, "copy PPS %d of length %u", i, + (guint) nalmap.size); GST_WRITE_UINT16_BE (data, nalmap.size); data += 2; memcpy (data, nalmap.data, nalmap.size); diff --git a/gst/rtp/gstrtpmp2tpay.c b/gst/rtp/gstrtpmp2tpay.c index bb79f87b94..79fff727c0 100644 --- a/gst/rtp/gstrtpmp2tpay.c +++ b/gst/rtp/gstrtpmp2tpay.c @@ -162,8 +162,8 @@ gst_rtp_mp2t_pay_flush (GstRTPMP2TPay * rtpmp2tpay) GST_BUFFER_TIMESTAMP (outbuf) = rtpmp2tpay->first_ts; GST_BUFFER_DURATION (outbuf) = rtpmp2tpay->duration; - GST_DEBUG_OBJECT (rtpmp2tpay, "pushing buffer of size %d", - gst_buffer_get_size (outbuf)); + GST_DEBUG_OBJECT (rtpmp2tpay, "pushing buffer of size %u", + (guint) gst_buffer_get_size (outbuf)); ret = gst_rtp_base_payload_push (GST_RTP_BASE_PAYLOAD (rtpmp2tpay), outbuf); }