From 80e531a3c77add8f17bfc0f76c439b9e4b7cd9a2 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Mon, 7 Jun 2010 07:38:33 -0300 Subject: [PATCH] kate: Run gst-indent on .c files kate plugin has some indentation problems, run gst-indent on them and fix it --- ext/kate/gstkateenc.c | 4 ++-- ext/kate/gstkatespu.c | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ext/kate/gstkateenc.c b/ext/kate/gstkateenc.c index 7b46394ed1..b7cf5d4f73 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 %" G_GINT64_FORMAT, - event, (int) format, 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 8483525d87..778288ecfc 100644 --- a/ext/kate/gstkatespu.c +++ b/ext/kate/gstkatespu.c @@ -241,8 +241,7 @@ 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 %" G_GSIZE_FORMAT " %" G_GSIZE_FORMAT - " to %" G_GSIZE_FORMAT " %" G_GSIZE_FORMAT, kb->width, kb->height, - w, h); + " to %" G_GSIZE_FORMAT " %" G_GSIZE_FORMAT, kb->width, kb->height, w, h); *dx += left; *dy += top; n = 0; @@ -716,7 +715,8 @@ 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 %" G_GSIZE_FORMAT " byte buffer", nbytes); + GST_WARNING_OBJECT (kd, + "Failed to allocate %" G_GSIZE_FORMAT " byte buffer", nbytes); goto error; } nbytes = 4; @@ -861,7 +861,8 @@ 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 %" G_GSIZE_FORMAT " byte buffer", nbytes); + GST_WARNING_OBJECT (kd, + "Failed to allocate %" G_GSIZE_FORMAT " byte buffer", nbytes); goto error; } GST_BUFFER_DATA (buffer) = bytes;