From 734d5a79c58ab9038789d7b7309f27339494a986 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 6 Nov 2015 19:23:09 +0000 Subject: [PATCH] Fix code indentation --- ext/assrender/gstassrender.c | 3 +-- ext/curl/gstcurlftpsink.c | 3 ++- ext/dtls/gstdtlsdec.c | 3 ++- ext/smoothstreaming/gstmssmanifest.c | 4 +++- gst/geometrictransform/gstmirror.c | 26 +++++++++++++------------- gst/onvif/gstrtponviftimestamp.c | 22 +++++++++++----------- 6 files changed, 32 insertions(+), 29 deletions(-) diff --git a/ext/assrender/gstassrender.c b/ext/assrender/gstassrender.c index 3695b90..63895d9 100644 --- a/ext/assrender/gstassrender.c +++ b/ext/assrender/gstassrender.c @@ -995,8 +995,7 @@ gst_ass_render_setcaps_video (GstPad * pad, GstAssRender * render, GST_ASS_RENDER_LOCK (render); - if (!render->attach_compo_to_buffer && - !gst_ass_render_can_handle_caps (caps)) { + if (!render->attach_compo_to_buffer && !gst_ass_render_can_handle_caps (caps)) { GST_DEBUG_OBJECT (render, "unsupported caps %" GST_PTR_FORMAT, caps); ret = FALSE; } diff --git a/ext/curl/gstcurlftpsink.c b/ext/curl/gstcurlftpsink.c index 995fe38..fde69b8 100644 --- a/ext/curl/gstcurlftpsink.c +++ b/ext/curl/gstcurlftpsink.c @@ -230,7 +230,8 @@ set_ftp_dynamic_options_unlocked (GstCurlBaseSink * basesink) return FALSE; } - res = curl_easy_setopt (basesink->curl, CURLOPT_POSTQUOTE, sink->headerlist); + res = + curl_easy_setopt (basesink->curl, CURLOPT_POSTQUOTE, sink->headerlist); if (res != CURLE_OK) { basesink->error = g_strdup_printf ("failed to set post quote: %s", curl_easy_strerror (res)); diff --git a/ext/dtls/gstdtlsdec.c b/ext/dtls/gstdtlsdec.c index eecc458..f05b4f1 100644 --- a/ext/dtls/gstdtlsdec.c +++ b/ext/dtls/gstdtlsdec.c @@ -569,7 +569,8 @@ sink_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer) return GST_FLOW_OK; } - GST_DEBUG_OBJECT (self, "received buffer from %s with length %" G_GSIZE_FORMAT, + GST_DEBUG_OBJECT (self, + "received buffer from %s with length %" G_GSIZE_FORMAT, self->connection_id, gst_buffer_get_size (buffer)); buffer = gst_buffer_make_writable (buffer); diff --git a/ext/smoothstreaming/gstmssmanifest.c b/ext/smoothstreaming/gstmssmanifest.c index 33dc76f..0d50a20 100644 --- a/ext/smoothstreaming/gstmssmanifest.c +++ b/ext/smoothstreaming/gstmssmanifest.c @@ -976,7 +976,9 @@ gst_mss_stream_get_fragment_gst_timestamp (GstMssStream * stream) time = fragment->time + (fragment->duration * fragment->repetitions); } else { fragment = stream->current_fragment->data; - time = fragment->time + (fragment->duration * stream->fragment_repetition_index); + time = + fragment->time + + (fragment->duration * stream->fragment_repetition_index); } timescale = gst_mss_stream_get_timescale (stream); diff --git a/gst/geometrictransform/gstmirror.c b/gst/geometrictransform/gstmirror.c index db8afbf..dceb3c5 100644 --- a/gst/geometrictransform/gstmirror.c +++ b/gst/geometrictransform/gstmirror.c @@ -97,23 +97,23 @@ gst_mirror_set_property (GObject * object, guint prop_id, switch (prop_id) { case PROP_MODE: - { - gint mode; + { + gint mode; - GST_OBJECT_LOCK (filter); - mode = g_value_get_enum (value); + GST_OBJECT_LOCK (filter); + mode = g_value_get_enum (value); - if (mode != filter->mode) { - GstGeometricTransform *gt; + if (mode != filter->mode) { + GstGeometricTransform *gt; - gt = GST_GEOMETRIC_TRANSFORM_CAST (object); - filter->mode = mode; - gst_geometric_transform_set_need_remap (gt); - } - - GST_OBJECT_UNLOCK (filter); - break; + gt = GST_GEOMETRIC_TRANSFORM_CAST (object); + filter->mode = mode; + gst_geometric_transform_set_need_remap (gt); } + + GST_OBJECT_UNLOCK (filter); + break; + } default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; diff --git a/gst/onvif/gstrtponviftimestamp.c b/gst/onvif/gstrtponviftimestamp.c index e2bc9fb..4abece1 100644 --- a/gst/onvif/gstrtponviftimestamp.c +++ b/gst/onvif/gstrtponviftimestamp.c @@ -331,18 +331,18 @@ gst_rtp_onvif_timestamp_sink_event (GstPad * pad, GstObject * parent, } break; case GST_EVENT_EOS: - { - GstFlowReturn res; - /* Push pending buffers, if any */ - self->set_e_bit = TRUE; - res = send_cached_buffer_and_events (self); - if (res != GST_FLOW_OK) { - drop = TRUE; - ret = FALSE; - goto out; - } - break; + { + GstFlowReturn res; + /* Push pending buffers, if any */ + self->set_e_bit = TRUE; + res = send_cached_buffer_and_events (self); + if (res != GST_FLOW_OK) { + drop = TRUE; + ret = FALSE; + goto out; } + break; + } case GST_EVENT_FLUSH_STOP: purge_cached_buffer_and_events (self); self->set_d_bit = FALSE; -- 2.7.4