video: Fix printf format warnings on mingw-w64
authorRaimo Järvi <raimo.jarvi@gmail.com>
Sun, 20 May 2012 20:27:42 +0000 (23:27 +0300)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 24 May 2012 08:57:21 +0000 (10:57 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=676442

gst-libs/gst/video/gstvideodecoder.c
gst-libs/gst/video/gstvideoencoder.c

index e677b92..f8d982d 100644 (file)
@@ -1771,7 +1771,7 @@ gst_video_decoder_prepare_finish_frame (GstVideoDecoder *
   GList *l, *events = NULL;
 
 #ifndef GST_DISABLE_GST_DEBUG
-  GST_LOG_OBJECT (decoder, "n %d in %d out %d",
+  GST_LOG_OBJECT (decoder, "n %d in %" G_GSIZE_FORMAT " out %" G_GSIZE_FORMAT,
       g_list_length (priv->frames),
       gst_adapter_available (priv->input_adapter),
       gst_adapter_available (priv->output_adapter));
index 88b70c6..5633369 100644 (file)
@@ -1116,7 +1116,7 @@ gst_video_encoder_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
     stop = start + GST_BUFFER_DURATION (buf);
 
   GST_LOG_OBJECT (encoder,
-      "received buffer of size %d with ts %" GST_TIME_FORMAT
+      "received buffer of size %" G_GSIZE_FORMAT " with ts %" GST_TIME_FORMAT
       ", duration %" GST_TIME_FORMAT, gst_buffer_get_size (buf),
       GST_TIME_ARGS (start), GST_TIME_ARGS (GST_BUFFER_DURATION (buf)));