diff options
Diffstat (limited to 'gst/stereo/gststereo.c')
-rw-r--r-- | gst/stereo/gststereo.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gst/stereo/gststereo.c b/gst/stereo/gststereo.c index 4247e4dcd..ebadf9a4d 100644 --- a/gst/stereo/gststereo.c +++ b/gst/stereo/gststereo.c @@ -59,9 +59,9 @@ enum enum { - ARG_0, - ARG_ACTIVE, - ARG_STEREO + PROP_0, + PROP_ACTIVE, + PROP_STEREO }; static void gst_stereo_set_property (GObject * object, guint prop_id, @@ -95,12 +95,12 @@ gst_stereo_class_init (GstStereoClass * klass) gobject_class->set_property = gst_stereo_set_property; gobject_class->get_property = gst_stereo_get_property; - g_object_class_install_property (gobject_class, ARG_ACTIVE, + g_object_class_install_property (gobject_class, PROP_ACTIVE, g_param_spec_boolean ("active", "active", "active", TRUE, G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE | G_PARAM_STATIC_STRINGS)); - g_object_class_install_property (gobject_class, ARG_STEREO, + g_object_class_install_property (gobject_class, PROP_STEREO, g_param_spec_float ("stereo", "stereo", "stereo", 0.0, 1.0, 0.1, G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE | G_PARAM_STATIC_STRINGS)); @@ -169,10 +169,10 @@ gst_stereo_set_property (GObject * object, guint prop_id, const GValue * value, GstStereo *stereo = GST_STEREO (object); switch (prop_id) { - case ARG_ACTIVE: + case PROP_ACTIVE: stereo->active = g_value_get_boolean (value); break; - case ARG_STEREO: + case PROP_STEREO: stereo->stereo = g_value_get_float (value) * 10.0; break; default: @@ -188,10 +188,10 @@ gst_stereo_get_property (GObject * object, guint prop_id, GValue * value, GstStereo *stereo = GST_STEREO (object); switch (prop_id) { - case ARG_ACTIVE: + case PROP_ACTIVE: g_value_set_boolean (value, stereo->active); break; - case ARG_STEREO: + case PROP_STEREO: g_value_set_float (value, stereo->stereo / 10.0); break; default: |