Some printf variable format fixes
authorThiago Santos <thiago.sousa.santos@collabora.com>
Thu, 31 May 2012 21:39:25 +0000 (18:39 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Tue, 5 Jun 2012 20:53:57 +0000 (17:53 -0300)
The osx compiler complains about those

ext/libpng/gstpngdec.c
gst/rtp/gstrtph264depay.c
gst/rtp/gstrtpmp2tpay.c

index e2c778c06ddb9eaa47c9e3addbb88b684b0d3886..7c4d558fbc49c4feaa1b64c0a9ce8bdbf027dae8 100644 (file)
@@ -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))) {
index 7c839b4c23bdb77d1c512ec58a8d1e031197ee16..1739c2d19574dff8b9d5117348764128b3338625 100644 (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_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);
index bb79f87b947c30830324c5c873ec4eb6e8ccb31f..79fff727c09a9367aec9509507b932aeb90efa04 100644 (file)
@@ -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);
   }