summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorNicola Murino <nicola.murino@gmail.com>2017-07-18 00:36:27 +0200
committerOlivier CrĂȘte <olivier.crete@collabora.com>2017-07-17 19:13:18 -0400
commit20b5db0615caa3a21fd0bf0727b22d7246bb6699 (patch)
tree3a2c32bb9056c38c7a0cad6c1582dea2d8dbb579 /ext
parenta9255e4af83abed6a9e7ad3907c189bce3a0e900 (diff)
downloadgstreamer-plugins-bad-20b5db0615caa3a21fd0bf0727b22d7246bb6699.tar.gz
openh264enc: fix indentation
https://bugzilla.gnome.org/show_bug.cgi?id=784988
Diffstat (limited to 'ext')
-rw-r--r--ext/openh264/gstopenh264enc.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/ext/openh264/gstopenh264enc.cpp b/ext/openh264/gstopenh264enc.cpp
index a5b674f0a..120c6edca 100644
--- a/ext/openh264/gstopenh264enc.cpp
+++ b/ext/openh264/gstopenh264enc.cpp
@@ -108,7 +108,8 @@ gst_openh264enc_slice_mode_get_type (void)
{
static const GEnumValue types[] = {
{GST_OPENH264_SLICE_MODE_N_SLICES, "Fixed number of slices", "n-slices"},
- {GST_OPENH264_SLICE_MODE_AUTO, "Number of slices equal to number of threads", "auto"},
+ {GST_OPENH264_SLICE_MODE_AUTO,
+ "Number of slices equal to number of threads", "auto"},
{0, NULL, NULL},
};
static gsize id = 0;
@@ -502,7 +503,8 @@ gst_openh264enc_set_property (GObject * object, guint property_id,
break;
case PROP_SLICE_MODE:
- openh264enc->slice_mode = (GstOpenh264EncSliceMode) g_value_get_enum (value);
+ openh264enc->slice_mode =
+ (GstOpenh264EncSliceMode) g_value_get_enum (value);
break;
case PROP_NUM_SLICES:
@@ -741,7 +743,7 @@ gst_openh264enc_set_format (GstVideoEncoder * encoder,
slice_mode = SM_SINGLE_SLICE;
else
slice_mode = SM_FIXEDSLCNUM_SLICE;
- n_slices = openh264enc->num_slices;
+ n_slices = openh264enc->num_slices;
} else if (openh264enc->slice_mode == GST_OPENH264_SLICE_MODE_AUTO) {
#if OPENH264_MAJOR == 1 && OPENH264_MINOR < 6
slice_mode = SM_AUTO_SLICE;
@@ -830,7 +832,7 @@ gst_openh264enc_handle_frame (GstVideoEncoder * encoder,
} else {
openh264enc->time_per_frame = (guint64)
(openh264enc->time_per_frame * 0.8 + (frame->pts -
- openh264enc->previous_timestamp) * 0.2);
+ openh264enc->previous_timestamp) * 0.2);
openh264enc->previous_timestamp = frame->pts;
if (openh264enc->frame_count % 10 == 0) {
fps = GST_SECOND / (gdouble) openh264enc->time_per_frame;