summaryrefslogtreecommitdiffstats
path: root/gst/stereo/gststereo.c
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2004-03-15 19:32:27 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2004-03-15 19:32:27 +0000
commit4fd57bbe3fef59592a8664dcc9fa2ab32ae99c69 (patch)
tree8f41b30e571aa6ed88b53f5471d5e38461136e60 /gst/stereo/gststereo.c
parent9f4226fe55f09cf5809376b467aa3f46dbf7b5c2 (diff)
downloadgst-plugins-bad-4fd57bbe3fef59592a8664dcc9fa2ab32ae99c69.tar.gz
gst-plugins-bad-4fd57bbe3fef59592a8664dcc9fa2ab32ae99c69.tar.bz2
gst-plugins-bad-4fd57bbe3fef59592a8664dcc9fa2ab32ae99c69.zip
don't mix tabs and spaces
Original commit message from CVS: don't mix tabs and spaces
Diffstat (limited to 'gst/stereo/gststereo.c')
-rw-r--r--gst/stereo/gststereo.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/gst/stereo/gststereo.c b/gst/stereo/gststereo.c
index 947c3885..a0fb74a3 100644
--- a/gst/stereo/gststereo.c
+++ b/gst/stereo/gststereo.c
@@ -81,8 +81,9 @@ gst_stereo_get_type (void)
0,
(GInstanceInitFunc) gst_stereo_init,
};
+
stereo_type =
- g_type_register_static (GST_TYPE_ELEMENT, "GstStereo", &stereo_info, 0);
+ g_type_register_static (GST_TYPE_ELEMENT, "GstStereo", &stereo_info, 0);
}
return stereo_type;
}
@@ -105,8 +106,8 @@ gst_stereo_class_init (GstStereoClass * klass)
parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
- g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_ACTIVE, g_param_spec_int ("active", "active", "active", G_MININT, G_MAXINT, 0, G_PARAM_READWRITE)); /* CHECKME */
- g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_STEREO, g_param_spec_float ("stereo", "stereo", "stereo", 0.0, 1.0, 0.0, G_PARAM_READWRITE)); /* CHECKME */
+ g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_ACTIVE, g_param_spec_int ("active", "active", "active", G_MININT, G_MAXINT, 0, G_PARAM_READWRITE)); /* CHECKME */
+ g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_STEREO, g_param_spec_float ("stereo", "stereo", "stereo", 0.0, 1.0, 0.0, G_PARAM_READWRITE)); /* CHECKME */
gobject_class->set_property = gst_stereo_set_property;
gobject_class->get_property = gst_stereo_get_property;
@@ -160,16 +161,16 @@ gst_stereo_chain (GstPad * pad, GstData * _data)
tmp = avg + ldiff * mul;
if (tmp < -32768)
- tmp = -32768;
+ tmp = -32768;
if (tmp > 32767)
- tmp = 32767;
+ tmp = 32767;
data[i] = tmp;
tmp = avg + rdiff * mul;
if (tmp < -32768)
- tmp = -32768;
+ tmp = -32768;
if (tmp > 32767)
- tmp = 32767;
+ tmp = 32767;
data[i + 1] = tmp;
}
/*} */