From 5f25780b02c34a479b143783f18d53a60dc03dbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?UTF-8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Thu, 29 Apr 2010 04:42:21 +0400 Subject: Fix printf format strings for gcc 4.5 Done on Windows/MinGW. Fixes #617146 --- ext/kate/gstkateenc.c | 4 ++-- ext/kate/gstkatespu.c | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'ext/kate') diff --git a/ext/kate/gstkateenc.c b/ext/kate/gstkateenc.c index bc2ba2901..7b46394ed 100644 --- a/ext/kate/gstkateenc.c +++ b/ext/kate/gstkateenc.c @@ -1272,8 +1272,8 @@ gst_kate_enc_sink_event (GstPad * pad, GstEvent * event) NULL, NULL); if (format != GST_FORMAT_TIME || !GST_CLOCK_TIME_IS_VALID (timestamp)) { GST_WARNING_OBJECT (ke, - "No time in newsegment event %p, format %d, timestamp %lld", - event, (int) format, (long long) timestamp); + "No time in newsegment event %p, format %d, timestamp %" G_GINT64_FORMAT, + event, (int) format, timestamp); /* to be safe, we'd need to generate a keepalive anyway, but we'd have to guess at the timestamp to use; a good guess would be the last known timestamp plus the keepalive time, but if we then get a packet with a timestamp less than this, it would fail to encode, which would be Bad. If we don't encode a keepalive, we diff --git a/ext/kate/gstkatespu.c b/ext/kate/gstkatespu.c index 7218d1cdd..8483525d8 100644 --- a/ext/kate/gstkatespu.c +++ b/ext/kate/gstkatespu.c @@ -240,7 +240,8 @@ gst_kate_spu_crop_bitmap (GstKateEnc * ke, kate_bitmap * kb, guint16 * dx, w = right - left + 1; h = bottom - top + 1; - GST_LOG_OBJECT (ke, "cropped from %zu %zu to %zu %zu", kb->width, kb->height, + GST_LOG_OBJECT (ke, "cropped from %" G_GSIZE_FORMAT " %" G_GSIZE_FORMAT + " to %" G_GSIZE_FORMAT " %" G_GSIZE_FORMAT, kb->width, kb->height, w, h); *dx += left; *dy += top; @@ -715,7 +716,7 @@ gst_kate_spu_encode_spu (GstKateDec * kd, const kate_event * ev) /* Allocate space to build the SPU */ bytes = g_malloc (MAX_SPU_SIZE); if (G_UNLIKELY (!bytes)) { - GST_WARNING_OBJECT (kd, "Failed to allocate %zu byte buffer", nbytes); + GST_WARNING_OBJECT (kd, "Failed to allocate %" G_GSIZE_FORMAT " byte buffer", nbytes); goto error; } nbytes = 4; @@ -860,7 +861,7 @@ gst_kate_spu_encode_spu (GstKateDec * kd, const kate_event * ev) /* Create a buffer with those values */ buffer = gst_buffer_new (); if (G_UNLIKELY (!buffer)) { - GST_WARNING_OBJECT (kd, "Failed to allocate %zu byte buffer", nbytes); + GST_WARNING_OBJECT (kd, "Failed to allocate %" G_GSIZE_FORMAT " byte buffer", nbytes); goto error; } GST_BUFFER_DATA (buffer) = bytes; @@ -871,7 +872,7 @@ gst_kate_spu_encode_spu (GstKateDec * kd, const kate_event * ev) GST_BUFFER_TIMESTAMP (buffer) = GST_SECOND * (ev->start_time); GST_BUFFER_DURATION (buffer) = GST_SECOND * (ev->end_time - ev->start_time); - GST_DEBUG_OBJECT (kd, "SPU uses %zu bytes", nbytes); + GST_DEBUG_OBJECT (kd, "SPU uses %" G_GSIZE_FORMAT " bytes", nbytes); kate_tracker_clear (&kin); return buffer; -- cgit v1.2.1