summaryrefslogtreecommitdiff
path: root/gst/adpcmenc/adpcmenc.c
diff options
context:
space:
mode:
authorLuis de Bethencourt <luis.bg@samsung.com>2015-04-27 10:55:13 +0100
committerLuis de Bethencourt <luis.bg@samsung.com>2015-04-27 10:55:18 +0100
commit925b65b02ed43f79a397d97e3664b8dc8d7be2a8 (patch)
tree43cdaaecb2e389f27c6bce6118bfba8f8928549e /gst/adpcmenc/adpcmenc.c
parent4ca63b01ab6821600397caf01f8ce0634242f590 (diff)
downloadgstreamer-plugins-bad-925b65b02ed43f79a397d97e3664b8dc8d7be2a8.tar.gz
Rename property enums from ARG_ to PROP_
Property enum items should be named PROP_ for consistency and readability.
Diffstat (limited to 'gst/adpcmenc/adpcmenc.c')
-rw-r--r--gst/adpcmenc/adpcmenc.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/gst/adpcmenc/adpcmenc.c b/gst/adpcmenc/adpcmenc.c
index 7a8faabe3..36d336c90 100644
--- a/gst/adpcmenc/adpcmenc.c
+++ b/gst/adpcmenc/adpcmenc.c
@@ -84,9 +84,9 @@ static const int ima_step_size[89] = {
enum adpcm_properties
{
- ARG_0,
- ARG_BLOCK_SIZE,
- ARG_LAYOUT
+ PROP_0,
+ PROP_BLOCK_SIZE,
+ PROP_LAYOUT
};
enum adpcm_layout
@@ -200,10 +200,10 @@ adpcmenc_set_property (GObject * object,
ADPCMEnc *enc = GST_ADPCM_ENC (object);
switch (prop_id) {
- case ARG_BLOCK_SIZE:
+ case PROP_BLOCK_SIZE:
enc->blocksize = g_value_get_int (value);
break;
- case ARG_LAYOUT:
+ case PROP_LAYOUT:
enc->layout = g_value_get_enum (value);
break;
default:
@@ -219,10 +219,10 @@ adpcmenc_get_property (GObject * object,
ADPCMEnc *enc = GST_ADPCM_ENC (object);
switch (prop_id) {
- case ARG_BLOCK_SIZE:
+ case PROP_BLOCK_SIZE:
g_value_set_int (value, enc->blocksize);
break;
- case ARG_LAYOUT:
+ case PROP_LAYOUT:
g_value_set_enum (value, enc->layout);
break;
default:
@@ -450,13 +450,13 @@ adpcmenc_class_init (ADPCMEncClass * klass)
base_class->set_format = GST_DEBUG_FUNCPTR (adpcmenc_set_format);
base_class->handle_frame = GST_DEBUG_FUNCPTR (adpcmenc_handle_frame);
- g_object_class_install_property (gobjectclass, ARG_LAYOUT,
+ g_object_class_install_property (gobjectclass, PROP_LAYOUT,
g_param_spec_enum ("layout", "Layout",
"Layout for output stream",
GST_TYPE_ADPCMENC_LAYOUT, DEFAULT_ADPCM_LAYOUT,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- g_object_class_install_property (gobjectclass, ARG_BLOCK_SIZE,
+ g_object_class_install_property (gobjectclass, PROP_BLOCK_SIZE,
g_param_spec_int ("blockalign", "Block Align",
"Block size for output stream",
MIN_ADPCM_BLOCK_SIZE, MAX_ADPCM_BLOCK_SIZE,