Rename property enums from ARG_ to PROP_

Property enum items should be named PROP_ for consistency and readability.
This commit is contained in:
Luis de Bethencourt 2015-04-27 10:55:13 +01:00
parent 4ca63b01ab
commit 925b65b02e
22 changed files with 190 additions and 190 deletions

View file

@ -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,

View file

@ -142,7 +142,7 @@ enum
enum
{
ARG_0
PROP_0
/* FILL ME */
};

View file

@ -72,9 +72,9 @@ enum
enum
{
ARG_0,
ARG_COLUMNS,
ARG_ROWS
PROP_0,
PROP_COLUMNS,
PROP_ROWS
/* FILL ME */
};
@ -165,11 +165,11 @@ gst_puzzle_class_init (gpointer g_class, gpointer class_data)
gobject_class->get_property = gst_puzzle_get_property;
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",
1, G_MAXUINT, 4,
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",
1, G_MAXUINT, 4,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
@ -450,11 +450,11 @@ gst_puzzle_set_property (GObject * object, guint prop_id,
GST_DEBUG ("gst_puzzle_set_property");
switch (prop_id) {
case ARG_COLUMNS:
case PROP_COLUMNS:
src->columns = g_value_get_uint (value);
gst_puzzle_create (src);
break;
case ARG_ROWS:
case PROP_ROWS:
src->rows = g_value_get_uint (value);
gst_puzzle_create (src);
break;
@ -474,10 +474,10 @@ gst_puzzle_get_property (GObject * object, guint prop_id, GValue * value,
src = GST_PUZZLE (object);
switch (prop_id) {
case ARG_COLUMNS:
case PROP_COLUMNS:
g_value_set_uint (value, src->columns);
break;
case ARG_ROWS:
case PROP_ROWS:
g_value_set_uint (value, src->rows);
break;
default:

View file

@ -61,10 +61,10 @@ GST_DEBUG_CATEGORY (gst_id3_mux_debug);
enum
{
ARG_0,
ARG_WRITE_V1,
ARG_WRITE_V2,
ARG_V2_MAJOR_VERSION
PROP_0,
PROP_WRITE_V1,
PROP_WRITE_V2,
PROP_V2_MAJOR_VERSION
};
#define DEFAULT_WRITE_V1 FALSE
@ -102,17 +102,17 @@ gst_id3_mux_class_init (GstId3MuxClass * klass)
gobject_class->set_property = gst_id3_mux_set_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",
"Write an id3v1 tag at the end of the file", DEFAULT_WRITE_V1,
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",
"Write an id3v2 tag at the start of the file", DEFAULT_WRITE_V2,
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",
"Set version (3 for id3v2.3, 4 for id3v2.4) of id3v2 tags",
3, 4, DEFAULT_V2_MAJOR_VERSION,
@ -152,13 +152,13 @@ gst_id3_mux_set_property (GObject * object, guint prop_id,
GstId3Mux *mux = GST_ID3_MUX (object);
switch (prop_id) {
case ARG_WRITE_V1:
case PROP_WRITE_V1:
mux->write_v1 = g_value_get_boolean (value);
break;
case ARG_WRITE_V2:
case PROP_WRITE_V2:
mux->write_v2 = g_value_get_boolean (value);
break;
case ARG_V2_MAJOR_VERSION:
case PROP_V2_MAJOR_VERSION:
mux->v2_major_version = g_value_get_int (value);
break;
default:
@ -174,13 +174,13 @@ gst_id3_mux_get_property (GObject * object, guint prop_id,
GstId3Mux *mux = GST_ID3_MUX (object);
switch (prop_id) {
case ARG_WRITE_V1:
case PROP_WRITE_V1:
g_value_set_boolean (value, mux->write_v1);
break;
case ARG_WRITE_V2:
case PROP_WRITE_V2:
g_value_set_boolean (value, mux->write_v2);
break;
case ARG_V2_MAJOR_VERSION:
case PROP_V2_MAJOR_VERSION:
g_value_set_int (value, mux->v2_major_version);
break;
default:

View file

@ -36,19 +36,19 @@
enum
{
ARG_0,
ARG_HOST,
ARG_PORT,
ARG_VERSION,
ARG_PASSWORD,
ARG_OFFSET_X,
ARG_OFFSET_Y,
ARG_WIDTH,
ARG_HEIGHT,
ARG_INCREMENTAL,
ARG_USE_COPYRECT,
ARG_SHARED,
ARG_VIEWONLY
PROP_0,
PROP_HOST,
PROP_PORT,
PROP_VERSION,
PROP_PASSWORD,
PROP_OFFSET_X,
PROP_OFFSET_Y,
PROP_WIDTH,
PROP_HEIGHT,
PROP_INCREMENTAL,
PROP_USE_COPYRECT,
PROP_SHARED,
PROP_VIEWONLY
};
GST_DEBUG_CATEGORY_STATIC (rfbsrc_debug);
@ -102,47 +102,47 @@ gst_rfb_src_class_init (GstRfbSrcClass * klass)
gobject_class->set_property = gst_rfb_src_set_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",
"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",
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",
"RFB protocol version", "3.3",
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",
"Password for authentication", "",
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",
"x offset for screen scrapping", 0, 65535, 0,
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",
"y offset for screen scrapping", 0, 65535, 0,
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,
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,
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",
"Incremental updates", TRUE,
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",
"Use copyrect encoding", FALSE,
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",
"Share desktop with other clients", TRUE,
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",
"only view the desktop", FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@ -249,41 +249,41 @@ gst_rfb_src_set_property (GObject * object, guint prop_id,
GstRfbSrc *src = GST_RFB_SRC (object);
switch (prop_id) {
case ARG_HOST:
case PROP_HOST:
src->host = g_strdup (g_value_get_string (value));
break;
case ARG_PORT:
case PROP_PORT:
src->port = g_value_get_int (value);
break;
case ARG_VERSION:
case PROP_VERSION:
gst_rfb_property_set_version (src, g_strdup (g_value_get_string (value)));
break;
case ARG_PASSWORD:
case PROP_PASSWORD:
g_free (src->decoder->password);
src->decoder->password = g_strdup (g_value_get_string (value));
break;
case ARG_OFFSET_X:
case PROP_OFFSET_X:
src->decoder->offset_x = g_value_get_int (value);
break;
case ARG_OFFSET_Y:
case PROP_OFFSET_Y:
src->decoder->offset_y = g_value_get_int (value);
break;
case ARG_WIDTH:
case PROP_WIDTH:
src->decoder->rect_width = g_value_get_int (value);
break;
case ARG_HEIGHT:
case PROP_HEIGHT:
src->decoder->rect_height = g_value_get_int (value);
break;
case ARG_INCREMENTAL:
case PROP_INCREMENTAL:
src->incremental_update = g_value_get_boolean (value);
break;
case ARG_USE_COPYRECT:
case PROP_USE_COPYRECT:
src->decoder->use_copyrect = g_value_get_boolean (value);
break;
case ARG_SHARED:
case PROP_SHARED:
src->decoder->shared_flag = g_value_get_boolean (value);
break;
case ARG_VIEWONLY:
case PROP_VIEWONLY:
src->view_only = g_value_get_boolean (value);
break;
default:
@ -299,39 +299,39 @@ gst_rfb_src_get_property (GObject * object, guint prop_id,
gchar *version;
switch (prop_id) {
case ARG_HOST:
case PROP_HOST:
g_value_set_string (value, src->host);
break;
case ARG_PORT:
case PROP_PORT:
g_value_set_int (value, src->port);
break;
case ARG_VERSION:
case PROP_VERSION:
version = gst_rfb_property_get_version (src);
g_value_set_string (value, version);
g_free (version);
break;
case ARG_OFFSET_X:
case PROP_OFFSET_X:
g_value_set_int (value, src->decoder->offset_x);
break;
case ARG_OFFSET_Y:
case PROP_OFFSET_Y:
g_value_set_int (value, src->decoder->offset_y);
break;
case ARG_WIDTH:
case PROP_WIDTH:
g_value_set_int (value, src->decoder->rect_width);
break;
case ARG_HEIGHT:
case PROP_HEIGHT:
g_value_set_int (value, src->decoder->rect_height);
break;
case ARG_INCREMENTAL:
case PROP_INCREMENTAL:
g_value_set_boolean (value, src->incremental_update);
break;
case ARG_USE_COPYRECT:
case PROP_USE_COPYRECT:
g_value_set_boolean (value, src->decoder->use_copyrect);
break;
case ARG_SHARED:
case PROP_SHARED:
g_value_set_boolean (value, src->decoder->shared_flag);
break;
case ARG_VIEWONLY:
case PROP_VIEWONLY:
g_value_set_boolean (value, src->view_only);
break;
default:

View file

@ -76,12 +76,12 @@ enum
enum
{
ARG_0,
ARG_GRPSIZE,
ARG_OUTSIZE,
ARG_SINKPADS,
ARG_SRCPADS,
ARG_MATRIXPTR
PROP_0,
PROP_GRPSIZE,
PROP_OUTSIZE,
PROP_SINKPADS,
PROP_SRCPADS,
PROP_MATRIXPTR
};
static GstStaticPadTemplate mixmatrix_sink_template =
@ -176,16 +176,16 @@ gst_mixmatrix_class_init (GstMixMatrixClass * klass)
G_STRUCT_OFFSET (GstMixMatrixClass, resize),
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",
"Number of sink pads in matrix", 0, G_MAXINT, 8,
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",
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",
"Pointer to gfloat mix matrix",
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
@ -501,13 +501,13 @@ gst_mixmatrix_get_property (GObject * object, guint prop_id, GValue * value,
mix = GST_MIXMATRIX (object);
switch (prop_id) {
case ARG_SINKPADS:
case PROP_SINKPADS:
g_value_set_int (value, mix->sinkpadalloc);
break;
case ARG_SRCPADS:
case PROP_SRCPADS:
g_value_set_int (value, mix->srcpadalloc);
break;
case ARG_MATRIXPTR:
case PROP_MATRIXPTR:
g_value_set_pointer (value, mix->matrix);
break;
default:

View file

@ -37,7 +37,7 @@ enum
enum
{
ARG_0
PROP_0
/* FILL ME */
};

View file

@ -89,8 +89,8 @@ enum
enum
{
ARG_0,
ARG_SYNC,
PROP_0,
PROP_SYNC,
/* FILL ME */
};

View file

@ -261,7 +261,7 @@ GST_STATIC_PAD_TEMPLATE ("private_%04x",
enum
{
ARG_0,
PROP_0,
PROP_PROGRAM_NUMBER,
PROP_EMIT_STATS,
/* FILL ME */

View file

@ -102,13 +102,13 @@ GST_DEBUG_CATEGORY (mpegtsmux_debug);
enum
{
ARG_0,
ARG_PROG_MAP,
ARG_M2TS_MODE,
ARG_PAT_INTERVAL,
ARG_PMT_INTERVAL,
ARG_ALIGNMENT,
ARG_SI_INTERVAL
PROP_0,
PROP_PROG_MAP,
PROP_M2TS_MODE,
PROP_PAT_INTERVAL,
PROP_PMT_INTERVAL,
PROP_ALIGNMENT,
PROP_SI_INTERVAL
};
#define MPEGTSMUX_DEFAULT_ALIGNMENT -1
@ -254,37 +254,37 @@ mpegtsmux_class_init (MpegTsMuxClass * klass)
gstelement_class->get_index = GST_DEBUG_FUNCPTR (mpegtsmux_get_index);
#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",
"A GstStructure specifies the mapping from elementary streams to programs",
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",
"Set to TRUE to output Blu-Ray disc format with 192 byte packets. "
"FALSE for standard TS format with 188 byte packets.",
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",
"Set the interval (in ticks of the 90kHz clock) for writing out the PAT table",
1, G_MAXUINT, TSMUX_DEFAULT_PAT_INTERVAL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_PMT_INTERVAL,
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_PMT_INTERVAL,
g_param_spec_uint ("pmt-interval", "PMT interval",
"Set the interval (in ticks of the 90kHz clock) for writing out the PMT table",
1, G_MAXUINT, TSMUX_DEFAULT_PMT_INTERVAL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_ALIGNMENT,
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_ALIGNMENT,
g_param_spec_int ("alignment", "packet alignment",
"Number of packets per buffer (padded with dummy packets on EOS) "
"(-1 = auto, 0 = all available packets, 7 for UDP streaming)",
-1, G_MAXINT, MPEGTSMUX_DEFAULT_ALIGNMENT,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_SI_INTERVAL,
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_SI_INTERVAL,
g_param_spec_uint ("si-interval", "SI interval",
"Set the interval (in ticks of the 90kHz clock) for writing out the Service"
"Information tables", 1, G_MAXUINT, TSMUX_DEFAULT_SI_INTERVAL,
@ -456,11 +456,11 @@ gst_mpegtsmux_set_property (GObject * object, guint prop_id,
GSList *walk;
switch (prop_id) {
case ARG_M2TS_MODE:
case PROP_M2TS_MODE:
/*set incase if the output stream need to be of 192 bytes */
mux->m2ts_mode = g_value_get_boolean (value);
break;
case ARG_PROG_MAP:
case PROP_PROG_MAP:
{
const GstStructure *s = gst_value_get_structure (value);
if (mux->prog_map) {
@ -472,12 +472,12 @@ gst_mpegtsmux_set_property (GObject * object, guint prop_id,
mux->prog_map = NULL;
break;
}
case ARG_PAT_INTERVAL:
case PROP_PAT_INTERVAL:
mux->pat_interval = g_value_get_uint (value);
if (mux->tsmux)
tsmux_set_pat_interval (mux->tsmux, mux->pat_interval);
break;
case ARG_PMT_INTERVAL:
case PROP_PMT_INTERVAL:
walk = mux->collect->data;
mux->pmt_interval = g_value_get_uint (value);
@ -488,10 +488,10 @@ gst_mpegtsmux_set_property (GObject * object, guint prop_id,
walk = g_slist_next (walk);
}
break;
case ARG_ALIGNMENT:
case PROP_ALIGNMENT:
mux->alignment = g_value_get_int (value);
break;
case ARG_SI_INTERVAL:
case PROP_SI_INTERVAL:
mux->si_interval = g_value_get_uint (value);
tsmux_set_si_interval (mux->tsmux, mux->si_interval);
break;
@ -508,22 +508,22 @@ gst_mpegtsmux_get_property (GObject * object, guint prop_id,
MpegTsMux *mux = GST_MPEG_TSMUX (object);
switch (prop_id) {
case ARG_M2TS_MODE:
case PROP_M2TS_MODE:
g_value_set_boolean (value, mux->m2ts_mode);
break;
case ARG_PROG_MAP:
case PROP_PROG_MAP:
gst_value_set_structure (value, mux->prog_map);
break;
case ARG_PAT_INTERVAL:
case PROP_PAT_INTERVAL:
g_value_set_uint (value, mux->pat_interval);
break;
case ARG_PMT_INTERVAL:
case PROP_PMT_INTERVAL:
g_value_set_uint (value, mux->pmt_interval);
break;
case ARG_ALIGNMENT:
case PROP_ALIGNMENT:
g_value_set_int (value, mux->alignment);
break;
case ARG_SI_INTERVAL:
case PROP_SI_INTERVAL:
g_value_set_uint (value, mux->si_interval);
break;
default:

View file

@ -42,11 +42,11 @@ static const char mve_preamble[] = MVE_PREAMBLE;
enum
{
ARG_0,
ARG_AUDIO_COMPRESSION,
ARG_VIDEO_QUICK_ENCODING,
ARG_VIDEO_SCREEN_WIDTH,
ARG_VIDEO_SCREEN_HEIGHT
PROP_0,
PROP_AUDIO_COMPRESSION,
PROP_VIDEO_QUICK_ENCODING,
PROP_VIDEO_SCREEN_WIDTH,
PROP_VIDEO_SCREEN_HEIGHT
};
#define MVE_MUX_DEFAULT_COMPRESSION FALSE
@ -226,16 +226,16 @@ gst_mve_mux_get_property (GObject * object,
mvemux = GST_MVE_MUX (object);
switch (prop_id) {
case ARG_AUDIO_COMPRESSION:
case PROP_AUDIO_COMPRESSION:
g_value_set_boolean (value, mvemux->compression);
break;
case ARG_VIDEO_QUICK_ENCODING:
case PROP_VIDEO_QUICK_ENCODING:
g_value_set_boolean (value, mvemux->quick_encoding);
break;
case ARG_VIDEO_SCREEN_WIDTH:
case PROP_VIDEO_SCREEN_WIDTH:
g_value_set_uint (value, mvemux->screen_width);
break;
case ARG_VIDEO_SCREEN_HEIGHT:
case PROP_VIDEO_SCREEN_HEIGHT:
g_value_set_uint (value, mvemux->screen_height);
break;
default:
@ -254,16 +254,16 @@ gst_mve_mux_set_property (GObject * object,
mvemux = GST_MVE_MUX (object);
switch (prop_id) {
case ARG_AUDIO_COMPRESSION:
case PROP_AUDIO_COMPRESSION:
mvemux->compression = g_value_get_boolean (value);
break;
case ARG_VIDEO_QUICK_ENCODING:
case PROP_VIDEO_QUICK_ENCODING:
mvemux->quick_encoding = g_value_get_boolean (value);
break;
case ARG_VIDEO_SCREEN_WIDTH:
case PROP_VIDEO_SCREEN_WIDTH:
mvemux->screen_width = g_value_get_uint (value);
break;
case ARG_VIDEO_SCREEN_HEIGHT:
case PROP_VIDEO_SCREEN_HEIGHT:
mvemux->screen_height = g_value_get_uint (value);
break;
default:
@ -1402,23 +1402,23 @@ gst_mve_mux_class_init (GstMveMuxClass * klass)
gobject_class->get_property = gst_mve_mux_get_property;
gobject_class->set_property = gst_mve_mux_set_property;
g_object_class_install_property (gobject_class, ARG_AUDIO_COMPRESSION,
g_object_class_install_property (gobject_class, PROP_AUDIO_COMPRESSION,
g_param_spec_boolean ("compression", "Audio compression",
"Whether to compress audio data", MVE_MUX_DEFAULT_COMPRESSION,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_VIDEO_QUICK_ENCODING,
g_object_class_install_property (gobject_class, PROP_VIDEO_QUICK_ENCODING,
g_param_spec_boolean ("quick", "Quick encoding",
"Whether to disable expensive encoding operations", TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_VIDEO_SCREEN_WIDTH,
g_object_class_install_property (gobject_class, PROP_VIDEO_SCREEN_WIDTH,
g_param_spec_uint ("screen-width", "Screen width",
"Suggested screen width", 320, 1600,
MVE_MUX_DEFAULT_SCREEN_WIDTH,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_VIDEO_SCREEN_HEIGHT,
g_object_class_install_property (gobject_class, PROP_VIDEO_SCREEN_HEIGHT,
g_param_spec_uint ("screen-height", "Screen height",
"Suggested screen height", 200, 1200,
MVE_MUX_DEFAULT_SCREEN_HEIGHT,

View file

@ -58,7 +58,7 @@ GST_STATIC_PAD_TEMPLATE ("src",
enum
{
ARG_0,
PROP_0,
PROP_NTP_OFFSET,
PROP_CSEQ,
PROP_SET_E_BIT,

View file

@ -61,7 +61,7 @@ enum
enum
{
ARG_0
PROP_0
};

View file

@ -32,8 +32,8 @@ enum
enum
{
ARG_0,
ARG_QUALITY
PROP_0,
PROP_QUALITY
};

View file

@ -32,8 +32,8 @@ enum
enum
{
ARG_0,
ARG_QUALITY
PROP_0,
PROP_QUALITY
};

View file

@ -52,8 +52,8 @@ GST_DEBUG_CATEGORY_STATIC (speed_debug);
enum
{
ARG_0,
ARG_SPEED
PROP_0,
PROP_SPEED
};
/* assumption here: sizeof (gfloat) = 4 */
@ -388,7 +388,7 @@ gst_speed_class_init (GstSpeedClass * klass)
gobject_class->get_property = speed_get_property;
gstelement_class->change_state = speed_change_state;
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_SPEED,
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_SPEED,
g_param_spec_float ("speed", "speed", "speed",
0.1, 40.0, 1.0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
@ -641,7 +641,7 @@ speed_set_property (GObject * object, guint prop_id, const GValue * value,
GstSpeed *filter = GST_SPEED (object);
switch (prop_id) {
case ARG_SPEED:
case PROP_SPEED:
filter->speed = g_value_get_float (value);
break;
default:
@ -658,7 +658,7 @@ speed_get_property (GObject * object, guint prop_id, GValue * value,
GstSpeed *filter = GST_SPEED (object);
switch (prop_id) {
case ARG_SPEED:
case PROP_SPEED:
g_value_set_float (value, filter->speed);
break;
default:

View file

@ -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:

View file

@ -30,9 +30,9 @@ GST_DEBUG_CATEGORY_STATIC (srtenc_debug);
enum
{
ARG_0,
ARG_TIMESTAMP,
ARG_DURATION
PROP_0,
PROP_TIMESTAMP,
PROP_DURATION
};
static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
@ -190,10 +190,10 @@ gst_srt_enc_get_property (GObject * object,
srtenc = GST_SRT_ENC (object);
switch (prop_id) {
case ARG_TIMESTAMP:
case PROP_TIMESTAMP:
g_value_set_int64 (value, srtenc->timestamp);
break;
case ARG_DURATION:
case PROP_DURATION:
g_value_set_int64 (value, srtenc->duration);
break;
default:
@ -212,10 +212,10 @@ gst_srt_enc_set_property (GObject * object,
srtenc = GST_SRT_ENC (object);
switch (prop_id) {
case ARG_TIMESTAMP:
case PROP_TIMESTAMP:
srtenc->timestamp = g_value_get_int64 (value);
break;
case ARG_DURATION:
case PROP_DURATION:
srtenc->duration = g_value_get_int64 (value);
break;
default:
@ -235,12 +235,12 @@ gst_srt_enc_class_init (GstSrtEncClass * klass)
element_class->change_state = GST_DEBUG_FUNCPTR (gst_srt_enc_change_state);
g_object_class_install_property (gobject_class, ARG_TIMESTAMP,
g_object_class_install_property (gobject_class, PROP_TIMESTAMP,
g_param_spec_int64 ("timestamp", "Offset for the starttime",
"Offset for the starttime for the subtitles", G_MININT64, G_MAXINT64,
0,
G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_DURATION,
g_object_class_install_property (gobject_class, PROP_DURATION,
g_param_spec_int64 ("duration", "Offset for the duration",
"Offset for the duration of the subtitles", G_MININT64, G_MAXINT64,
0,

View file

@ -31,9 +31,9 @@ GST_DEBUG_CATEGORY_STATIC (webvttenc_debug);
enum
{
ARG_0,
ARG_TIMESTAMP,
ARG_DURATION
PROP_0,
PROP_TIMESTAMP,
PROP_DURATION
};
static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
@ -210,10 +210,10 @@ gst_webvtt_enc_get_property (GObject * object,
webvttenc = GST_WEBVTT_ENC (object);
switch (prop_id) {
case ARG_TIMESTAMP:
case PROP_TIMESTAMP:
g_value_set_int64 (value, webvttenc->timestamp);
break;
case ARG_DURATION:
case PROP_DURATION:
g_value_set_int64 (value, webvttenc->duration);
break;
default:
@ -232,10 +232,10 @@ gst_webvtt_enc_set_property (GObject * object,
webvttenc = GST_WEBVTT_ENC (object);
switch (prop_id) {
case ARG_TIMESTAMP:
case PROP_TIMESTAMP:
webvttenc->timestamp = g_value_get_int64 (value);
break;
case ARG_DURATION:
case PROP_DURATION:
webvttenc->duration = g_value_get_int64 (value);
break;
default:
@ -255,12 +255,12 @@ gst_webvtt_enc_class_init (GstWebvttEncClass * klass)
element_class->change_state = GST_DEBUG_FUNCPTR (gst_webvtt_enc_change_state);
g_object_class_install_property (gobject_class, ARG_TIMESTAMP,
g_object_class_install_property (gobject_class, PROP_TIMESTAMP,
g_param_spec_int64 ("timestamp", "Offset for the starttime",
"Offset for the starttime for the subtitles", G_MININT64, G_MAXINT64,
0,
G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_DURATION,
g_object_class_install_property (gobject_class, PROP_DURATION,
g_param_spec_int64 ("duration", "Offset for the duration",
"Offset for the duration of the subtitles", G_MININT64, G_MAXINT64,
0,

View file

@ -70,7 +70,7 @@ enum
enum
{
ARG_0
PROP_0
};
static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink",

View file

@ -71,10 +71,10 @@ enum
enum
{
ARG_0,
ARG_VERBOSE,
ARG_CAPTION_TYPE,
ARG_DVD_INPUT
PROP_0,
PROP_VERBOSE,
PROP_CAPTION_TYPE,
PROP_DVD_INPUT
};
static GstStaticPadTemplate gst_vbidec_sink_template =
@ -186,14 +186,14 @@ gst_vbidec_class_init (GstVBIDecClass * klass)
gobject_class->set_property = gst_vbidec_set_property;
gobject_class->get_property = gst_vbidec_get_property;
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_VERBOSE,
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_VERBOSE,
g_param_spec_boolean ("verbose", "verbose", "verbose",
FALSE, G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_CAPTION_TYPE,
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_CAPTION_TYPE,
g_param_spec_enum ("caption-type", "caption type", "Closed Caption Type",
GST_TYPE_VBIDEC_CAPTION_TYPE_TYPE, CAPTURE_OFF,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_DVD_INPUT,
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_DVD_INPUT,
g_param_spec_boolean ("dvd-input", "dvd input",
"VBI is encapsulated in MPEG2 GOP user_data field (as on DVDs)",
FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@ -330,14 +330,14 @@ gst_vbidec_set_property (GObject * object, guint prop_id, const GValue * value,
vbidec = GST_VBIDEC (object);
switch (prop_id) {
case ARG_VERBOSE:
case PROP_VERBOSE:
vbidata_set_verbose (vbidec->vbidata, g_value_get_boolean (value));
vbiscreen_set_verbose (vbidec->vbiscreen, g_value_get_boolean (value));
break;
case ARG_DVD_INPUT:
case PROP_DVD_INPUT:
vbidec->dvd_input = g_value_get_boolean (value);
break;
case ARG_CAPTION_TYPE:
case PROP_CAPTION_TYPE:
vbidec->caption_type = g_value_get_enum (value);
vbidata_capture_mode (vbidec->vbidata, vbidec->caption_type);
break;
@ -356,10 +356,10 @@ gst_vbidec_get_property (GObject * object, guint prop_id, GValue * value,
vbidec = GST_VBIDEC (object);
switch (prop_id) {
case ARG_DVD_INPUT:
case PROP_DVD_INPUT:
g_value_set_boolean (value, vbidec->dvd_input);
break;
case ARG_CAPTION_TYPE:
case PROP_CAPTION_TYPE:
g_value_set_enum (value, vbidec->caption_type);
break;
default:

View file

@ -51,7 +51,7 @@ GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT);
enum
{
ARG_0,
PROP_0,
};
enum