Commit 925b65b0 authored by Luis de Bethencourt's avatar Luis de Bethencourt

Rename property enums from ARG_ to PROP_

Property enum items should be named PROP_ for consistency and readability.
parent 4ca63b01
...@@ -84,9 +84,9 @@ static const int ima_step_size[89] = { ...@@ -84,9 +84,9 @@ static const int ima_step_size[89] = {
enum adpcm_properties enum adpcm_properties
{ {
ARG_0, PROP_0,
ARG_BLOCK_SIZE, PROP_BLOCK_SIZE,
ARG_LAYOUT PROP_LAYOUT
}; };
enum adpcm_layout enum adpcm_layout
...@@ -200,10 +200,10 @@ adpcmenc_set_property (GObject * object, ...@@ -200,10 +200,10 @@ adpcmenc_set_property (GObject * object,
ADPCMEnc *enc = GST_ADPCM_ENC (object); ADPCMEnc *enc = GST_ADPCM_ENC (object);
switch (prop_id) { switch (prop_id) {
case ARG_BLOCK_SIZE: case PROP_BLOCK_SIZE:
enc->blocksize = g_value_get_int (value); enc->blocksize = g_value_get_int (value);
break; break;
case ARG_LAYOUT: case PROP_LAYOUT:
enc->layout = g_value_get_enum (value); enc->layout = g_value_get_enum (value);
break; break;
default: default:
...@@ -219,10 +219,10 @@ adpcmenc_get_property (GObject * object, ...@@ -219,10 +219,10 @@ adpcmenc_get_property (GObject * object,
ADPCMEnc *enc = GST_ADPCM_ENC (object); ADPCMEnc *enc = GST_ADPCM_ENC (object);
switch (prop_id) { switch (prop_id) {
case ARG_BLOCK_SIZE: case PROP_BLOCK_SIZE:
g_value_set_int (value, enc->blocksize); g_value_set_int (value, enc->blocksize);
break; break;
case ARG_LAYOUT: case PROP_LAYOUT:
g_value_set_enum (value, enc->layout); g_value_set_enum (value, enc->layout);
break; break;
default: default:
...@@ -450,13 +450,13 @@ adpcmenc_class_init (ADPCMEncClass * klass) ...@@ -450,13 +450,13 @@ adpcmenc_class_init (ADPCMEncClass * klass)
base_class->set_format = GST_DEBUG_FUNCPTR (adpcmenc_set_format); base_class->set_format = GST_DEBUG_FUNCPTR (adpcmenc_set_format);
base_class->handle_frame = GST_DEBUG_FUNCPTR (adpcmenc_handle_frame); 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", g_param_spec_enum ("layout", "Layout",
"Layout for output stream", "Layout for output stream",
GST_TYPE_ADPCMENC_LAYOUT, DEFAULT_ADPCM_LAYOUT, GST_TYPE_ADPCMENC_LAYOUT, DEFAULT_ADPCM_LAYOUT,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 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", g_param_spec_int ("blockalign", "Block Align",
"Block size for output stream", "Block size for output stream",
MIN_ADPCM_BLOCK_SIZE, MAX_ADPCM_BLOCK_SIZE, MIN_ADPCM_BLOCK_SIZE, MAX_ADPCM_BLOCK_SIZE,
......
...@@ -142,7 +142,7 @@ enum ...@@ -142,7 +142,7 @@ enum
enum enum
{ {
ARG_0 PROP_0
/* FILL ME */ /* FILL ME */
}; };
......
...@@ -72,9 +72,9 @@ enum ...@@ -72,9 +72,9 @@ enum
enum enum
{ {
ARG_0, PROP_0,
ARG_COLUMNS, PROP_COLUMNS,
ARG_ROWS PROP_ROWS
/* FILL ME */ /* FILL ME */
}; };
...@@ -165,11 +165,11 @@ gst_puzzle_class_init (gpointer g_class, gpointer class_data) ...@@ -165,11 +165,11 @@ gst_puzzle_class_init (gpointer g_class, gpointer class_data)
gobject_class->get_property = gst_puzzle_get_property; gobject_class->get_property = gst_puzzle_get_property;
gobject_class->finalize = gst_puzzle_finalize; gobject_class->finalize = gst_puzzle_finalize;
g_object_class_install_property (gobject_class, ARG_ROWS, g_object_class_install_property (gobject_class, PROP_ROWS,
g_param_spec_uint ("rows", "rows", "number of rows in puzzle", g_param_spec_uint ("rows", "rows", "number of rows in puzzle",
1, G_MAXUINT, 4, 1, G_MAXUINT, 4,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_COLUMNS, g_object_class_install_property (gobject_class, PROP_COLUMNS,
g_param_spec_uint ("columns", "columns", "number of columns in puzzle", g_param_spec_uint ("columns", "columns", "number of columns in puzzle",
1, G_MAXUINT, 4, 1, G_MAXUINT, 4,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
...@@ -450,11 +450,11 @@ gst_puzzle_set_property (GObject * object, guint prop_id, ...@@ -450,11 +450,11 @@ gst_puzzle_set_property (GObject * object, guint prop_id,
GST_DEBUG ("gst_puzzle_set_property"); GST_DEBUG ("gst_puzzle_set_property");
switch (prop_id) { switch (prop_id) {
case ARG_COLUMNS: case PROP_COLUMNS:
src->columns = g_value_get_uint (value); src->columns = g_value_get_uint (value);
gst_puzzle_create (src); gst_puzzle_create (src);
break; break;
case ARG_ROWS: case PROP_ROWS:
src->rows = g_value_get_uint (value); src->rows = g_value_get_uint (value);
gst_puzzle_create (src); gst_puzzle_create (src);
break; break;
...@@ -474,10 +474,10 @@ gst_puzzle_get_property (GObject * object, guint prop_id, GValue * value, ...@@ -474,10 +474,10 @@ gst_puzzle_get_property (GObject * object, guint prop_id, GValue * value,
src = GST_PUZZLE (object); src = GST_PUZZLE (object);
switch (prop_id) { switch (prop_id) {
case ARG_COLUMNS: case PROP_COLUMNS:
g_value_set_uint (value, src->columns); g_value_set_uint (value, src->columns);
break; break;
case ARG_ROWS: case PROP_ROWS:
g_value_set_uint (value, src->rows); g_value_set_uint (value, src->rows);
break; break;
default: default:
......
...@@ -61,10 +61,10 @@ GST_DEBUG_CATEGORY (gst_id3_mux_debug); ...@@ -61,10 +61,10 @@ GST_DEBUG_CATEGORY (gst_id3_mux_debug);
enum enum
{ {
ARG_0, PROP_0,
ARG_WRITE_V1, PROP_WRITE_V1,
ARG_WRITE_V2, PROP_WRITE_V2,
ARG_V2_MAJOR_VERSION PROP_V2_MAJOR_VERSION
}; };
#define DEFAULT_WRITE_V1 FALSE #define DEFAULT_WRITE_V1 FALSE
...@@ -102,17 +102,17 @@ gst_id3_mux_class_init (GstId3MuxClass * klass) ...@@ -102,17 +102,17 @@ gst_id3_mux_class_init (GstId3MuxClass * klass)
gobject_class->set_property = gst_id3_mux_set_property; gobject_class->set_property = gst_id3_mux_set_property;
gobject_class->get_property = gst_id3_mux_get_property; gobject_class->get_property = gst_id3_mux_get_property;
g_object_class_install_property (gobject_class, ARG_WRITE_V1, g_object_class_install_property (gobject_class, PROP_WRITE_V1,
g_param_spec_boolean ("write-v1", "Write id3v1 tag", g_param_spec_boolean ("write-v1", "Write id3v1 tag",
"Write an id3v1 tag at the end of the file", DEFAULT_WRITE_V1, "Write an id3v1 tag at the end of the file", DEFAULT_WRITE_V1,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_WRITE_V2, g_object_class_install_property (gobject_class, PROP_WRITE_V2,
g_param_spec_boolean ("write-v2", "Write id3v2 tag", g_param_spec_boolean ("write-v2", "Write id3v2 tag",
"Write an id3v2 tag at the start of the file", DEFAULT_WRITE_V2, "Write an id3v2 tag at the start of the file", DEFAULT_WRITE_V2,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_V2_MAJOR_VERSION, g_object_class_install_property (gobject_class, PROP_V2_MAJOR_VERSION,
g_param_spec_int ("v2-version", "Version (3 or 4) of id3v2 tag", g_param_spec_int ("v2-version", "Version (3 or 4) of id3v2 tag",
"Set version (3 for id3v2.3, 4 for id3v2.4) of id3v2 tags", "Set version (3 for id3v2.3, 4 for id3v2.4) of id3v2 tags",
3, 4, DEFAULT_V2_MAJOR_VERSION, 3, 4, DEFAULT_V2_MAJOR_VERSION,
...@@ -152,13 +152,13 @@ gst_id3_mux_set_property (GObject * object, guint prop_id, ...@@ -152,13 +152,13 @@ gst_id3_mux_set_property (GObject * object, guint prop_id,
GstId3Mux *mux = GST_ID3_MUX (object); GstId3Mux *mux = GST_ID3_MUX (object);
switch (prop_id) { switch (prop_id) {
case ARG_WRITE_V1: case PROP_WRITE_V1:
mux->write_v1 = g_value_get_boolean (value); mux->write_v1 = g_value_get_boolean (value);
break; break;
case ARG_WRITE_V2: case PROP_WRITE_V2:
mux->write_v2 = g_value_get_boolean (value); mux->write_v2 = g_value_get_boolean (value);
break; break;
case ARG_V2_MAJOR_VERSION: case PROP_V2_MAJOR_VERSION:
mux->v2_major_version = g_value_get_int (value); mux->v2_major_version = g_value_get_int (value);
break; break;
default: default:
...@@ -174,13 +174,13 @@ gst_id3_mux_get_property (GObject * object, guint prop_id, ...@@ -174,13 +174,13 @@ gst_id3_mux_get_property (GObject * object, guint prop_id,
GstId3Mux *mux = GST_ID3_MUX (object); GstId3Mux *mux = GST_ID3_MUX (object);
switch (prop_id) { switch (prop_id) {
case ARG_WRITE_V1: case PROP_WRITE_V1:
g_value_set_boolean (value, mux->write_v1); g_value_set_boolean (value, mux->write_v1);
break; break;
case ARG_WRITE_V2: case PROP_WRITE_V2:
g_value_set_boolean (value, mux->write_v2); g_value_set_boolean (value, mux->write_v2);
break; break;
case ARG_V2_MAJOR_VERSION: case PROP_V2_MAJOR_VERSION:
g_value_set_int (value, mux->v2_major_version); g_value_set_int (value, mux->v2_major_version);
break; break;
default: default:
......
...@@ -36,19 +36,19 @@ ...@@ -36,19 +36,19 @@
enum enum
{ {
ARG_0, PROP_0,
ARG_HOST, PROP_HOST,
ARG_PORT, PROP_PORT,
ARG_VERSION, PROP_VERSION,
ARG_PASSWORD, PROP_PASSWORD,
ARG_OFFSET_X, PROP_OFFSET_X,
ARG_OFFSET_Y, PROP_OFFSET_Y,
ARG_WIDTH, PROP_WIDTH,
ARG_HEIGHT, PROP_HEIGHT,
ARG_INCREMENTAL, PROP_INCREMENTAL,
ARG_USE_COPYRECT, PROP_USE_COPYRECT,
ARG_SHARED, PROP_SHARED,
ARG_VIEWONLY PROP_VIEWONLY
}; };
GST_DEBUG_CATEGORY_STATIC (rfbsrc_debug); GST_DEBUG_CATEGORY_STATIC (rfbsrc_debug);
...@@ -102,47 +102,47 @@ gst_rfb_src_class_init (GstRfbSrcClass * klass) ...@@ -102,47 +102,47 @@ gst_rfb_src_class_init (GstRfbSrcClass * klass)
gobject_class->set_property = gst_rfb_src_set_property; gobject_class->set_property = gst_rfb_src_set_property;
gobject_class->get_property = gst_rfb_src_get_property; gobject_class->get_property = gst_rfb_src_get_property;
g_object_class_install_property (gobject_class, ARG_HOST, g_object_class_install_property (gobject_class, PROP_HOST,
g_param_spec_string ("host", "Host to connect to", "Host to connect to", g_param_spec_string ("host", "Host to connect to", "Host to connect to",
"127.0.0.1", G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); "127.0.0.1", G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_PORT, g_object_class_install_property (gobject_class, PROP_PORT,
g_param_spec_int ("port", "Port", "Port", g_param_spec_int ("port", "Port", "Port",
1, 65535, 5900, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1, 65535, 5900, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_VERSION, g_object_class_install_property (gobject_class, PROP_VERSION,
g_param_spec_string ("version", "RFB protocol version", g_param_spec_string ("version", "RFB protocol version",
"RFB protocol version", "3.3", "RFB protocol version", "3.3",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_PASSWORD, g_object_class_install_property (gobject_class, PROP_PASSWORD,
g_param_spec_string ("password", "Password for authentication", g_param_spec_string ("password", "Password for authentication",
"Password for authentication", "", "Password for authentication", "",
G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS)); G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_OFFSET_X, g_object_class_install_property (gobject_class, PROP_OFFSET_X,
g_param_spec_int ("offset-x", "x offset for screen scrapping", g_param_spec_int ("offset-x", "x offset for screen scrapping",
"x offset for screen scrapping", 0, 65535, 0, "x offset for screen scrapping", 0, 65535, 0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_OFFSET_Y, g_object_class_install_property (gobject_class, PROP_OFFSET_Y,
g_param_spec_int ("offset-y", "y offset for screen scrapping", g_param_spec_int ("offset-y", "y offset for screen scrapping",
"y offset for screen scrapping", 0, 65535, 0, "y offset for screen scrapping", 0, 65535, 0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_WIDTH, g_object_class_install_property (gobject_class, PROP_WIDTH,
g_param_spec_int ("width", "width of screen", "width of screen", 0, 65535, g_param_spec_int ("width", "width of screen", "width of screen", 0, 65535,
0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_HEIGHT, g_object_class_install_property (gobject_class, PROP_HEIGHT,
g_param_spec_int ("height", "height of screen", "height of screen", 0, g_param_spec_int ("height", "height of screen", "height of screen", 0,
65535, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 65535, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_INCREMENTAL, g_object_class_install_property (gobject_class, PROP_INCREMENTAL,
g_param_spec_boolean ("incremental", "Incremental updates", g_param_spec_boolean ("incremental", "Incremental updates",
"Incremental updates", TRUE, "Incremental updates", TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_USE_COPYRECT, g_object_class_install_property (gobject_class, PROP_USE_COPYRECT,
g_param_spec_boolean ("use-copyrect", "Use copyrect encoding", g_param_spec_boolean ("use-copyrect", "Use copyrect encoding",
"Use copyrect encoding", FALSE, "Use copyrect encoding", FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_SHARED, g_object_class_install_property (gobject_class, PROP_SHARED,
g_param_spec_boolean ("shared", "Share desktop with other clients", g_param_spec_boolean ("shared", "Share desktop with other clients",
"Share desktop with other clients", TRUE, "Share desktop with other clients", TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_VIEWONLY, g_object_class_install_property (gobject_class, PROP_VIEWONLY,
g_param_spec_boolean ("view-only", "Only view the desktop", g_param_spec_boolean ("view-only", "Only view the desktop",
"only view the desktop", FALSE, "only view the desktop", FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
...@@ -249,41 +249,41 @@ gst_rfb_src_set_property (GObject * object, guint prop_id, ...@@ -249,41 +249,41 @@ gst_rfb_src_set_property (GObject * object, guint prop_id,
GstRfbSrc *src = GST_RFB_SRC (object); GstRfbSrc *src = GST_RFB_SRC (object);
switch (prop_id) { switch (prop_id) {
case ARG_HOST: case PROP_HOST:
src->host = g_strdup (g_value_get_string (value)); src->host = g_strdup (g_value_get_string (value));
break; break;
case ARG_PORT: case PROP_PORT:
src->port = g_value_get_int (value); src->port = g_value_get_int (value);
break; break;
case ARG_VERSION: case PROP_VERSION:
gst_rfb_property_set_version (src, g_strdup (g_value_get_string (value))); gst_rfb_property_set_version (src, g_strdup (g_value_get_string (value)));
break; break;
case ARG_PASSWORD: case PROP_PASSWORD:
g_free (src->decoder->password); g_free (src->decoder->password);
src->decoder->password = g_strdup (g_value_get_string (value)); src->decoder->password = g_strdup (g_value_get_string (value));
break; break;
case ARG_OFFSET_X: case PROP_OFFSET_X:
src->decoder->offset_x = g_value_get_int (value); src->decoder->offset_x = g_value_get_int (value);
break; break;
case ARG_OFFSET_Y: case PROP_OFFSET_Y:
src->decoder->offset_y = g_value_get_int (value); src->decoder->offset_y = g_value_get_int (value);
break; break;
case ARG_WIDTH: case PROP_WIDTH:
src->decoder->rect_width = g_value_get_int (value); src->decoder->rect_width = g_value_get_int (value);
break; break;
case ARG_HEIGHT: case PROP_HEIGHT:
src->decoder->rect_height = g_value_get_int (value); src->decoder->rect_height = g_value_get_int (value);
break; break;
case ARG_INCREMENTAL: case PROP_INCREMENTAL:
src->incremental_update = g_value_get_boolean (value); src->incremental_update = g_value_get_boolean (value);
break; break;
case ARG_USE_COPYRECT: case PROP_USE_COPYRECT:
src->decoder->use_copyrect = g_value_get_boolean (value); src->decoder->use_copyrect = g_value_get_boolean (value);
break; break;
case ARG_SHARED: case PROP_SHARED:
src->decoder->shared_flag = g_value_get_boolean (value); src->decoder->shared_flag = g_value_get_boolean (value);
break; break;
case ARG_VIEWONLY: case PROP_VIEWONLY:
src->view_only = g_value_get_boolean (value); src->view_only = g_value_get_boolean (value);
break; break;
default: default:
...@@ -299,39 +299,39 @@ gst_rfb_src_get_property (GObject * object, guint prop_id, ...@@ -299,39 +299,39 @@ gst_rfb_src_get_property (GObject * object, guint prop_id,
gchar *version; gchar *version;
switch (prop_id) { switch (prop_id) {
case ARG_HOST: case PROP_HOST:
g_value_set_string (value, src->host); g_value_set_string (value, src->host);
break; break;
case ARG_PORT: case PROP_PORT:
g_value_set_int (value, src->port); g_value_set_int (value, src->port);
break; break;
case ARG_VERSION: case PROP_VERSION:
version = gst_rfb_property_get_version (src); version = gst_rfb_property_get_version (src);
g_value_set_string (value, version); g_value_set_string (value, version);
g_free (version); g_free (version);
break; break;
case ARG_OFFSET_X: case PROP_OFFSET_X:
g_value_set_int (value, src->decoder->offset_x); g_value_set_int (value, src->decoder->offset_x);
break; break;
case ARG_OFFSET_Y: case PROP_OFFSET_Y:
g_value_set_int (value, src->decoder->offset_y); g_value_set_int (value, src->decoder->offset_y);
break; break;
case ARG_WIDTH: case PROP_WIDTH:
g_value_set_int (value, src->decoder->rect_width); g_value_set_int (value, src->decoder->rect_width);
break; break;
case ARG_HEIGHT: case PROP_HEIGHT:
g_value_set_int (value, src->decoder->rect_height); g_value_set_int (value, src->decoder->rect_height);
break; break;
case ARG_INCREMENTAL: case PROP_INCREMENTAL:
g_value_set_boolean (value, src->incremental_update); g_value_set_boolean (value, src->incremental_update);
break; break;
case ARG_USE_COPYRECT: case PROP_USE_COPYRECT:
g_value_set_boolean (value, src->decoder->use_copyrect); g_value_set_boolean (value, src->decoder->use_copyrect);
break; break;
case ARG_SHARED: case PROP_SHARED:
g_value_set_boolean (value, src->decoder->shared_flag); g_value_set_boolean (value, src->decoder->shared_flag);
break; break;
case ARG_VIEWONLY: case PROP_VIEWONLY:
g_value_set_boolean (value, src->view_only); g_value_set_boolean (value, src->view_only);
break; break;
default: default:
......
...@@ -76,12 +76,12 @@ enum ...@@ -76,12 +76,12 @@ enum
enum enum
{ {
ARG_0, PROP_0,
ARG_GRPSIZE, PROP_GRPSIZE,
ARG_OUTSIZE, PROP_OUTSIZE,
ARG_SINKPADS, PROP_SINKPADS,
ARG_SRCPADS, PROP_SRCPADS,
ARG_MATRIXPTR PROP_MATRIXPTR
}; };
static GstStaticPadTemplate mixmatrix_sink_template = static GstStaticPadTemplate mixmatrix_sink_template =
...@@ -176,16 +176,16 @@ gst_mixmatrix_class_init (GstMixMatrixClass * klass) ...@@ -176,16 +176,16 @@ gst_mixmatrix_class_init (GstMixMatrixClass * klass)
G_STRUCT_OFFSET (GstMixMatrixClass, resize), G_STRUCT_OFFSET (GstMixMatrixClass, resize),
NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_SINKPADS, g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_SINKPADS,
g_param_spec_int ("sinkpads", "Sink Pads", g_param_spec_int ("sinkpads", "Sink Pads",
"Number of sink pads in matrix", 0, G_MAXINT, 8, "Number of sink pads in matrix", 0, G_MAXINT, 8,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_SRCPADS, g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_SRCPADS,
g_param_spec_int ("srcpads", "Src Pads", "Number of src pads in matrix", g_param_spec_int ("srcpads", "Src Pads", "Number of src pads in matrix",
0, G_MAXINT, 8, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); 0, G_MAXINT, 8, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_MATRIXPTR, g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_MATRIXPTR,
g_param_spec_pointer ("matrixptr", "Matrix Pointer", g_param_spec_pointer ("matrixptr", "Matrix Pointer",
"Pointer to gfloat mix matrix", "Pointer to gfloat mix matrix",
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
...@@ -501,13 +501,13 @@ gst_mixmatrix_get_property (GObject * object, guint prop_id, GValue * value, ...@@ -501,13 +501,13 @@ gst_mixmatrix_get_property (GObject * object, guint prop_id, GValue * value,
mix = GST_MIXMATRIX (object); mix = GST_MIXMATRIX (object);
switch (prop_id) { switch (prop_id) {
case ARG_SINKPADS: case PROP_SINKPADS:
g_value_set_int (value, mix->sinkpadalloc); g_value_set_int (value, mix->sinkpadalloc);
break; break;
case ARG_SRCPADS: case PROP_SRCPADS:
g_value_set_int (value, mix->srcpadalloc); g_value_set_int (value, mix->srcpadalloc);
break; break;
case ARG_MATRIXPTR: case PROP_MATRIXPTR:
g_value_set_pointer (value, mix->matrix); g_value_set_pointer (value, mix->matrix);
break; break;
default: default:
......
...@@ -37,7 +37,7 @@ enum ...@@ -37,7 +37,7 @@ enum
enum enum
{ {
ARG_0 PROP_0
/* FILL ME */ /* FILL ME */
}; };
......
...@@ -89,8 +89,8 @@ enum ...@@ -89,8 +89,8 @@ enum
enum enum
{ {
ARG_0, PROP_0,
ARG_SYNC, PROP_SYNC,
/* FILL ME */ /* FILL ME */
}; };
......
...@@ -261,7 +261,7 @@ GST_STATIC_PAD_TEMPLATE ("private_%04x", ...@@ -261,7 +261,7 @@ GST_STATIC_PAD_TEMPLATE ("private_%04x",
enum enum
{ {
ARG_0, PROP_0,
PROP_PROGRAM_NUMBER, PROP_PROGRAM_NUMBER,
PROP_EMIT_STATS, PROP_EMIT_STATS,
/* FILL ME */ /* FILL ME */
......
...@@ -102,13 +102,13 @@ GST_DEBUG_CATEGORY (mpegtsmux_debug); ...@@ -102,13 +102,13 @@ GST_DEBUG_CATEGORY (mpegtsmux_debug);
enum enum
{ {
ARG_0, PROP_0,
ARG_PROG_MAP, PROP_PROG_MAP,
ARG_M2TS_MODE, PROP_M2TS_MODE,
ARG_PAT_INTERVAL, PROP_PAT_INTERVAL,
ARG_PMT_INTERVAL, PROP_PMT_INTERVAL,
ARG_ALIGNMENT, PROP_ALIGNMENT,
ARG_SI_INTERVAL PROP_SI_INTERVAL
}; };
#define MPEGTSMUX_DEFAULT_ALIGNMENT -1 #define MPEGTSMUX_DEFAULT_ALIGNMENT -1
...@@ -254,37 +254,37 @@ mpegtsmux_class_init (MpegTsMuxClass * klass) ...@@ -254,37 +254,37 @@ mpegtsmux_class_init (MpegTsMuxClass * klass)
gstelement_class->get_index = GST_DEBUG_FUNCPTR (mpegtsmux_get_index); gstelement_class->get_index = GST_DEBUG_FUNCPTR (mpegtsmux_get_index);
#endif #endif
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_PROG_MAP, g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_PROG_MAP,
g_param_spec_boxed ("prog-map", "Program map", g_param_spec_boxed ("prog-map", "Program map",
"A GstStructure specifies the mapping from elementary streams to programs", "A GstStructure specifies the mapping from elementary streams to programs",
GST_TYPE_STRUCTURE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); GST_TYPE_STRUCTURE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_M2TS_MODE, g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_M2TS_MODE,
g_param_spec_boolean ("m2ts-mode", "M2TS(192 bytes) Mode", g_param_spec_boolean ("m2ts-mode", "M2TS(192 bytes) Mode",
"Set to TRUE to output Blu-Ray disc format with 192 byte packets. " "Set to TRUE to output Blu-Ray disc format with 192 byte packets. "
"FALSE for standard TS format with 188 byte packets.", "FALSE for standard TS format with 188 byte packets.",
MPEGTSMUX_DEFAULT_M2TS, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); MPEGTSMUX_DEFAULT_M2TS, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_PAT_INTERVAL, g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_PAT_INTERVAL,
g_param_spec_uint ("pat-interval", "PAT interval", g_param_spec_uint ("pat-interval", "PAT interval",
"Set the interval (in ticks of the 90kHz clock) for writing out the PAT table", "Set the interval (in ticks of the 90kHz clock) for writing out the PAT table",
1, G_MAXUINT, TSMUX_DEFAULT_PAT_INTERVAL, 1, G_MAXUINT, TSMUX_DEFAULT_PAT_INTERVAL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_PMT_INTERVAL,