androidmedia: Fix debug statement (%d for a gsize argument)
authorEdward Hervey <bilboed@bilboed.com>
Fri, 13 Mar 2015 15:13:08 +0000 (16:13 +0100)
committerMatthew Waters <matthew@centricular.com>
Tue, 20 Oct 2015 17:27:43 +0000 (04:27 +1100)
sys/androidmedia/gstamc.c
sys/androidmedia/gstamcvideoenc.c

index 275f9073767780547fad3462c287490120c087b8..0ca7e2db872e9a0cc6775d89b94f702a1b0373c4 100644 (file)
@@ -2294,8 +2294,9 @@ gst_amc_color_format_copy (GstAmcColorFormatInfo * cinfo,
     goto done;
   }
 
-  GST_DEBUG ("Sizes not equal (%d vs %d), doing slow line-by-line copying",
-      cbuffer_info->size, gst_buffer_get_size (vbuffer));
+  GST_DEBUG ("Sizes not equal (%d vs %" G_GSIZE_FORMAT
+      "), doing slow line-by-line copying", cbuffer_info->size,
+      gst_buffer_get_size (vbuffer));
 
   /* Different video format, try to convert */
   switch (cinfo->color_format) {
index 4a42a307cd22c8ae506ea7b0e035872df9dd77a4..0d9f7de4fef77000a91c0281ee21d82332b72214 100644 (file)
@@ -1525,8 +1525,9 @@ failed_to_get_input_buffer:
 buffer_fill_error:
   {
     GST_ELEMENT_ERROR (self, RESOURCE, WRITE, (NULL),
-        ("Failed to write input into the amc buffer(write %dB to a %dB buffer)",
-            self->color_format_info.frame_size, buf->size));
+        ("Failed to write input into the amc buffer(write %dB to a %"
+            G_GSIZE_FORMAT "B buffer)", self->color_format_info.frame_size,
+            buf->size));
     gst_video_codec_frame_unref (frame);
     return GST_FLOW_ERROR;
   }