From 78da74736a3fba22b866f6287b3a80b955d3adc6 Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Mon, 27 Apr 2015 10:55:13 +0100 Subject: [PATCH] Rename property enums from ARG_ to PROP_ Property enum items should be named PROP_ for consistency and readability. --- gst/audiofx/gststereo.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/gst/audiofx/gststereo.c b/gst/audiofx/gststereo.c index 4247e4d..ebadf9a 100644 --- a/gst/audiofx/gststereo.c +++ b/gst/audiofx/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: -- 2.7.4