mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
kate: Run gst-indent on .c files
kate plugin has some indentation problems, run gst-indent on them and fix it
This commit is contained in:
parent
017808ef8d
commit
80e531a3c7
2 changed files with 7 additions and 6 deletions
|
@ -1272,8 +1272,8 @@ gst_kate_enc_sink_event (GstPad * pad, GstEvent * event)
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
if (format != GST_FORMAT_TIME || !GST_CLOCK_TIME_IS_VALID (timestamp)) {
|
if (format != GST_FORMAT_TIME || !GST_CLOCK_TIME_IS_VALID (timestamp)) {
|
||||||
GST_WARNING_OBJECT (ke,
|
GST_WARNING_OBJECT (ke,
|
||||||
"No time in newsegment event %p, format %d, timestamp %" G_GINT64_FORMAT,
|
"No time in newsegment event %p, format %d, timestamp %"
|
||||||
event, (int) format, 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
|
/* 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
|
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
|
timestamp less than this, it would fail to encode, which would be Bad. If we don't encode a keepalive, we
|
||||||
|
|
|
@ -241,8 +241,7 @@ gst_kate_spu_crop_bitmap (GstKateEnc * ke, kate_bitmap * kb, guint16 * dx,
|
||||||
w = right - left + 1;
|
w = right - left + 1;
|
||||||
h = bottom - top + 1;
|
h = bottom - top + 1;
|
||||||
GST_LOG_OBJECT (ke, "cropped from %" G_GSIZE_FORMAT " %" G_GSIZE_FORMAT
|
GST_LOG_OBJECT (ke, "cropped from %" G_GSIZE_FORMAT " %" G_GSIZE_FORMAT
|
||||||
" to %" G_GSIZE_FORMAT " %" G_GSIZE_FORMAT, kb->width, kb->height,
|
" to %" G_GSIZE_FORMAT " %" G_GSIZE_FORMAT, kb->width, kb->height, w, h);
|
||||||
w, h);
|
|
||||||
*dx += left;
|
*dx += left;
|
||||||
*dy += top;
|
*dy += top;
|
||||||
n = 0;
|
n = 0;
|
||||||
|
@ -716,7 +715,8 @@ gst_kate_spu_encode_spu (GstKateDec * kd, const kate_event * ev)
|
||||||
/* Allocate space to build the SPU */
|
/* Allocate space to build the SPU */
|
||||||
bytes = g_malloc (MAX_SPU_SIZE);
|
bytes = g_malloc (MAX_SPU_SIZE);
|
||||||
if (G_UNLIKELY (!bytes)) {
|
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;
|
goto error;
|
||||||
}
|
}
|
||||||
nbytes = 4;
|
nbytes = 4;
|
||||||
|
@ -861,7 +861,8 @@ gst_kate_spu_encode_spu (GstKateDec * kd, const kate_event * ev)
|
||||||
/* Create a buffer with those values */
|
/* Create a buffer with those values */
|
||||||
buffer = gst_buffer_new ();
|
buffer = gst_buffer_new ();
|
||||||
if (G_UNLIKELY (!buffer)) {
|
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;
|
goto error;
|
||||||
}
|
}
|
||||||
GST_BUFFER_DATA (buffer) = bytes;
|
GST_BUFFER_DATA (buffer) = bytes;
|
||||||
|
|
Loading…
Reference in a new issue