vp8enc: fix printf format warning in log message
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 3 Jun 2010 09:49:40 +0000 (10:49 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 3 Jun 2010 09:49:40 +0000 (10:49 +0100)
gstvp8enc.c:564: error: format ‘%d’ expects type ‘int’, but argument 8 has type ‘size_t’
gstvp8enc.c:744: error: format ‘%d’ expects type ‘int’, but argument 8 has type ‘size_t’

ext/vp8/gstvp8enc.c

index a3b2aeb..39d0df6 100644 (file)
@@ -561,7 +561,7 @@ gst_vp8_enc_finish (GstBaseVideoEncoder * base_video_encoder)
     GstVP8EncCoderHook *hook;
     gboolean invisible, keyframe;
 
-    GST_DEBUG_OBJECT (encoder, "packet %d type %d", pkt->data.frame.sz,
+    GST_DEBUG_OBJECT (encoder, "packet %u type %d", (guint) pkt->data.frame.sz,
         pkt->kind);
 
     if (pkt->kind != VPX_CODEC_CX_FRAME_PKT) {
@@ -741,7 +741,7 @@ gst_vp8_enc_handle_frame (GstBaseVideoEncoder * base_video_encoder,
     GstBuffer *buffer;
     gboolean invisible;
 
-    GST_DEBUG_OBJECT (encoder, "packet %d type %d", pkt->data.frame.sz,
+    GST_DEBUG_OBJECT (encoder, "packet %u type %d", (guint) pkt->data.frame.sz,
         pkt->kind);
 
     if (pkt->kind != VPX_CODEC_CX_FRAME_PKT) {