From 88cd44fbd899cc2f900a0a0e840106921ffc9db7 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Fri, 13 Mar 2015 16:13:08 +0100 Subject: [PATCH] androidmedia: Fix debug statement (%d for a gsize argument) --- sys/androidmedia/gstamc.c | 5 +++-- sys/androidmedia/gstamcvideoenc.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/sys/androidmedia/gstamc.c b/sys/androidmedia/gstamc.c index 275f907376..0ca7e2db87 100644 --- a/sys/androidmedia/gstamc.c +++ b/sys/androidmedia/gstamc.c @@ -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) { diff --git a/sys/androidmedia/gstamcvideoenc.c b/sys/androidmedia/gstamcvideoenc.c index 4a42a307cd..0d9f7de4fe 100644 --- a/sys/androidmedia/gstamcvideoenc.c +++ b/sys/androidmedia/gstamcvideoenc.c @@ -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; }