From f949930621ab8e9c1281e686b4e2cb50e35af0f5 Mon Sep 17 00:00:00 2001 From: Matej Knopp Date: Sun, 27 Nov 2011 20:24:39 +0100 Subject: [PATCH] videoparsers: fix format warnings https://bugzilla.gnome.org/show_bug.cgi?id=662618 --- gst/videoparsers/gstdiracparse.c | 4 ++-- gst/videoparsers/gsth264parse.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gst/videoparsers/gstdiracparse.c b/gst/videoparsers/gstdiracparse.c index 0a53877c00..c6fa69204a 100644 --- a/gst/videoparsers/gstdiracparse.c +++ b/gst/videoparsers/gstdiracparse.c @@ -229,8 +229,8 @@ gst_dirac_parse_check_valid_frame (GstBaseParse * parse, if (G_UNLIKELY (size < 13)) goto out; - GST_DEBUG ("%d: %02x %02x %02x %02x", size, data[0], data[1], data[2], - data[3]); + GST_DEBUG ("%" G_GSIZE_FORMAT ": %02x %02x %02x %02x", size, data[0], data[1], + data[2], data[3]); if (GST_READ_UINT32_BE (data) != 0x42424344) { GstByteReader reader; diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c index 6dc02d1eec..ab6216800d 100644 --- a/gst/videoparsers/gsth264parse.c +++ b/gst/videoparsers/gsth264parse.c @@ -680,8 +680,8 @@ gst_h264_parse_check_valid_frame (GstBaseParse * parse, if (GST_BASE_PARSE_DRAINING (parse)) { drain = TRUE; - GST_DEBUG_OBJECT (h264parse, "draining NAL %u %u %u", size, - h264parse->nalu.offset, h264parse->nalu.size); + GST_DEBUG_OBJECT (h264parse, "draining NAL %" G_GSIZE_FORMAT " %u %u", + size, h264parse->nalu.offset, h264parse->nalu.size); /* Can't parse the nalu */ if (size - h264parse->nalu.offset < 2) { *skipsize = nalu.offset; @@ -1357,7 +1357,7 @@ gst_h264_parse_set_caps (GstBaseParse * parse, GstCaps * caps) /* ERRORS */ avcc_too_small: { - GST_DEBUG_OBJECT (h264parse, "avcC size %u < 8", size); + GST_DEBUG_OBJECT (h264parse, "avcC size %" G_GSIZE_FORMAT " < 8", size); goto refuse_caps; } wrong_version: