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 11:22:11 +01:00
parent fd391a5404
commit 9391622579
34 changed files with 175 additions and 184 deletions

View file

@ -76,8 +76,8 @@ GST_DEBUG_CATEGORY_STATIC (avimux_debug);
enum
{
ARG_0,
ARG_BIGFILE
PROP_0,
PROP_BIGFILE
};
#define DEFAULT_BIGFILE TRUE
@ -242,7 +242,7 @@ gst_avi_mux_class_init (GstAviMuxClass * klass)
gobject_class->set_property = gst_avi_mux_set_property;
gobject_class->finalize = gst_avi_mux_finalize;
g_object_class_install_property (gobject_class, ARG_BIGFILE,
g_object_class_install_property (gobject_class, PROP_BIGFILE,
g_param_spec_boolean ("bigfile", "Bigfile Support (>2GB)",
"Support for openDML-2.0 (big) AVI files", DEFAULT_BIGFILE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@ -2217,7 +2217,7 @@ gst_avi_mux_get_property (GObject * object,
avimux = GST_AVI_MUX (object);
switch (prop_id) {
case ARG_BIGFILE:
case PROP_BIGFILE:
g_value_set_boolean (value, avimux->enable_large_avi);
break;
default:
@ -2235,7 +2235,7 @@ gst_avi_mux_set_property (GObject * object,
avimux = GST_AVI_MUX (object);
switch (prop_id) {
case ARG_BIGFILE:
case PROP_BIGFILE:
avimux->enable_large_avi = g_value_get_boolean (value);
break;
default:

View file

@ -49,11 +49,11 @@ GType gst_break_my_data_get_type (void);
enum
{
ARG_0,
ARG_SEED,
ARG_SET_TO,
ARG_SKIP,
ARG_PROBABILITY
PROP_0,
PROP_SEED,
PROP_SET_TO,
PROP_SKIP,
PROP_PROBABILITY
};
typedef struct _GstBreakMyData GstBreakMyData;
@ -118,22 +118,22 @@ gst_break_my_data_class_init (GstBreakMyDataClass * klass)
gobject_class->set_property = gst_break_my_data_set_property;
gobject_class->get_property = gst_break_my_data_get_property;
g_object_class_install_property (gobject_class, ARG_SEED,
g_object_class_install_property (gobject_class, PROP_SEED,
g_param_spec_uint ("seed", "seed",
"seed for randomness (initialized when going from READY to PAUSED)",
0, G_MAXUINT32, 0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_SET_TO,
g_object_class_install_property (gobject_class, PROP_SET_TO,
g_param_spec_int ("set-to", "set-to",
"set changed bytes to this value (-1 means random value",
-1, G_MAXUINT8, -1,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_SKIP,
g_object_class_install_property (gobject_class, PROP_SKIP,
g_param_spec_uint ("skip", "skip",
"amount of bytes skipped at the beginning of stream",
0, G_MAXUINT, 0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_PROBABILITY,
g_object_class_install_property (gobject_class, PROP_PROBABILITY,
g_param_spec_double ("probability", "probability",
"probability for each byte in the buffer to be changed", 0.0, 1.0,
0.0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
@ -168,16 +168,16 @@ gst_break_my_data_set_property (GObject * object, guint prop_id,
GST_OBJECT_LOCK (bmd);
switch (prop_id) {
case ARG_SEED:
case PROP_SEED:
bmd->seed = g_value_get_uint (value);
break;
case ARG_SET_TO:
case PROP_SET_TO:
bmd->set = g_value_get_int (value);
break;
case ARG_SKIP:
case PROP_SKIP:
bmd->skip = g_value_get_uint (value);
break;
case ARG_PROBABILITY:
case PROP_PROBABILITY:
bmd->probability = g_value_get_double (value);
break;
default:
@ -197,16 +197,16 @@ gst_break_my_data_get_property (GObject * object, guint prop_id, GValue * value,
GST_OBJECT_LOCK (bmd);
switch (prop_id) {
case ARG_SEED:
case PROP_SEED:
g_value_set_uint (value, bmd->seed);
break;
case ARG_SET_TO:
case PROP_SET_TO:
g_value_set_int (value, bmd->set);
break;
case ARG_SKIP:
case PROP_SKIP:
g_value_set_uint (value, bmd->skip);
break;
case ARG_PROBABILITY:
case PROP_PROBABILITY:
g_value_set_double (value, bmd->probability);
break;
default:

View file

@ -31,7 +31,7 @@
enum
{
ARG_0,
PROP_0,
};
GstStaticPadTemplate cpu_report_src_template = GST_STATIC_PAD_TEMPLATE ("src",

View file

@ -33,8 +33,8 @@
enum
{
ARG_0,
ARG_SEEKOFFSET
PROP_0,
PROP_SEEKOFFSET
};
GstStaticPadTemplate navseek_src_template = GST_STATIC_PAD_TEMPLATE ("src",
@ -80,7 +80,7 @@ gst_navseek_class_init (GstNavSeekClass * klass)
gobject_class->get_property = gst_navseek_get_property;
g_object_class_install_property (gobject_class,
ARG_SEEKOFFSET, g_param_spec_double ("seek-offset", "Seek Offset",
PROP_SEEKOFFSET, g_param_spec_double ("seek-offset", "Seek Offset",
"Time in seconds to seek by", 0.0, G_MAXDOUBLE, 5.0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@ -302,7 +302,7 @@ gst_navseek_set_property (GObject * object, guint prop_id,
GstNavSeek *navseek = GST_NAVSEEK (object);
switch (prop_id) {
case ARG_SEEKOFFSET:
case PROP_SEEKOFFSET:
GST_OBJECT_LOCK (navseek);
navseek->seek_offset = g_value_get_double (value);
GST_OBJECT_UNLOCK (navseek);
@ -320,7 +320,7 @@ gst_navseek_get_property (GObject * object, guint prop_id,
GstNavSeek *navseek = GST_NAVSEEK (object);
switch (prop_id) {
case ARG_SEEKOFFSET:
case PROP_SEEKOFFSET:
GST_OBJECT_LOCK (navseek);
g_value_set_double (value, navseek->seek_offset);
GST_OBJECT_UNLOCK (navseek);

View file

@ -78,11 +78,11 @@
enum
{
ARG_0,
ARG_UPDATE_FREQ,
ARG_SILENT,
ARG_DO_QUERY,
ARG_FORMAT
PROP_0,
PROP_UPDATE_FREQ,
PROP_SILENT,
PROP_DO_QUERY,
PROP_FORMAT
};
GstStaticPadTemplate progress_report_src_template =
@ -145,23 +145,23 @@ gst_progress_report_class_init (GstProgressReportClass * g_class)
gobject_class->get_property = gst_progress_report_get_property;
g_object_class_install_property (gobject_class,
ARG_UPDATE_FREQ, g_param_spec_int ("update-freq", "Update Frequency",
PROP_UPDATE_FREQ, g_param_spec_int ("update-freq", "Update Frequency",
"Number of seconds between reports when data is flowing", 1, G_MAXINT,
DEFAULT_UPDATE_FREQ, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
ARG_SILENT, g_param_spec_boolean ("silent",
PROP_SILENT, g_param_spec_boolean ("silent",
"Do not print output to stdout", "Do not print output to stdout",
DEFAULT_SILENT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
ARG_DO_QUERY, g_param_spec_boolean ("do-query",
PROP_DO_QUERY, g_param_spec_boolean ("do-query",
"Use a query instead of buffer metadata to determine stream position",
"Use a query instead of buffer metadata to determine stream position",
DEFAULT_DO_QUERY, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class,
ARG_FORMAT, g_param_spec_string ("format", "format",
PROP_FORMAT, g_param_spec_string ("format", "format",
"Format to use for the querying", DEFAULT_FORMAT,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@ -452,22 +452,22 @@ gst_progress_report_set_property (GObject * object, guint prop_id,
filter = GST_PROGRESS_REPORT (object);
switch (prop_id) {
case ARG_UPDATE_FREQ:
case PROP_UPDATE_FREQ:
GST_OBJECT_LOCK (filter);
filter->update_freq = g_value_get_int (value);
GST_OBJECT_UNLOCK (filter);
break;
case ARG_SILENT:
case PROP_SILENT:
GST_OBJECT_LOCK (filter);
filter->silent = g_value_get_boolean (value);
GST_OBJECT_UNLOCK (filter);
break;
case ARG_DO_QUERY:
case PROP_DO_QUERY:
GST_OBJECT_LOCK (filter);
filter->do_query = g_value_get_boolean (value);
GST_OBJECT_UNLOCK (filter);
break;
case ARG_FORMAT:
case PROP_FORMAT:
GST_OBJECT_LOCK (filter);
g_free (filter->format);
filter->format = g_value_dup_string (value);
@ -489,22 +489,22 @@ gst_progress_report_get_property (GObject * object, guint prop_id,
filter = GST_PROGRESS_REPORT (object);
switch (prop_id) {
case ARG_UPDATE_FREQ:
case PROP_UPDATE_FREQ:
GST_OBJECT_LOCK (filter);
g_value_set_int (value, filter->update_freq);
GST_OBJECT_UNLOCK (filter);
break;
case ARG_SILENT:
case PROP_SILENT:
GST_OBJECT_LOCK (filter);
g_value_set_boolean (value, filter->silent);
GST_OBJECT_UNLOCK (filter);
break;
case ARG_DO_QUERY:
case PROP_DO_QUERY:
GST_OBJECT_LOCK (filter);
g_value_set_boolean (value, filter->do_query);
GST_OBJECT_UNLOCK (filter);
break;
case ARG_FORMAT:
case PROP_FORMAT:
GST_OBJECT_LOCK (filter);
g_value_set_string (value, filter->format);
GST_OBJECT_UNLOCK (filter);

View file

@ -65,9 +65,9 @@ struct _GstRndBufferSizeClass
enum
{
ARG_SEED = 1,
ARG_MINIMUM,
ARG_MAXIMUM
PROP_SEED = 1,
PROP_MINIMUM,
PROP_MAXIMUM
};
#define DEFAULT_SEED 0
@ -132,16 +132,16 @@ gst_rnd_buffer_size_class_init (GstRndBufferSizeClass * klass)
gstelement_class->change_state =
GST_DEBUG_FUNCPTR (gst_rnd_buffer_size_change_state);
g_object_class_install_property (gobject_class, ARG_SEED,
g_object_class_install_property (gobject_class, PROP_SEED,
g_param_spec_uint ("seed", "random number seed",
"seed for randomness (initialized when going from READY to PAUSED)",
0, G_MAXUINT32, DEFAULT_SEED,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_MINIMUM,
g_object_class_install_property (gobject_class, PROP_MINIMUM,
g_param_spec_int ("min", "mininum", "mininum buffer size",
0, G_MAXINT32, DEFAULT_MIN,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_MAXIMUM,
g_object_class_install_property (gobject_class, PROP_MAXIMUM,
g_param_spec_int ("max", "maximum", "maximum buffer size",
1, G_MAXINT32, DEFAULT_MAX,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
@ -195,13 +195,13 @@ gst_rnd_buffer_size_set_property (GObject * object, guint prop_id,
GstRndBufferSize *self = GST_RND_BUFFER_SIZE (object);
switch (prop_id) {
case ARG_SEED:
case PROP_SEED:
self->seed = g_value_get_uint (value);
break;
case ARG_MINIMUM:
case PROP_MINIMUM:
self->min = g_value_get_int (value);
break;
case ARG_MAXIMUM:
case PROP_MAXIMUM:
self->max = g_value_get_int (value);
break;
default:
@ -218,13 +218,13 @@ gst_rnd_buffer_size_get_property (GObject * object, guint prop_id,
GstRndBufferSize *self = GST_RND_BUFFER_SIZE (object);
switch (prop_id) {
case ARG_SEED:
case PROP_SEED:
g_value_set_uint (value, self->seed);
break;
case ARG_MINIMUM:
case PROP_MINIMUM:
g_value_set_int (value, self->min);
break;
case ARG_MAXIMUM:
case PROP_MAXIMUM:
g_value_set_int (value, self->max);
break;
default:

View file

@ -158,8 +158,6 @@ GST_DEBUG_CATEGORY_STATIC (gst_rtp_dtmf_depay_debug);
enum
{
/* FILL ME */
LAST_SIGNAL
};
@ -171,11 +169,6 @@ enum
PROP_MAX_DURATION
};
enum
{
ARG_0
};
static GstStaticPadTemplate gst_rtp_dtmf_depay_src_template =
GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,

View file

@ -70,8 +70,8 @@ enum
enum
{
ARG_0,
ARG_RESOLVER
PROP_0,
PROP_RESOLVER
/* FILL ME */
};
@ -178,7 +178,7 @@ gst_index_class_init (GstIndexClass * klass)
gobject_class->get_property = gst_index_get_property;
gobject_class->finalize = gst_index_finalize;
g_object_class_install_property (gobject_class, ARG_RESOLVER,
g_object_class_install_property (gobject_class, PROP_RESOLVER,
g_param_spec_enum ("resolver", "Resolver",
"Select a predefined object to string mapper",
GST_TYPE_INDEX_RESOLVER, GST_INDEX_RESOLVER_PATH,
@ -250,7 +250,7 @@ gst_index_set_property (GObject * object, guint prop_id,
index = GST_INDEX (object);
switch (prop_id) {
case ARG_RESOLVER:
case PROP_RESOLVER:
index->method = (GstIndexResolverMethod) g_value_get_enum (value);
index->resolver = resolvers[index->method].resolver;
index->resolver_user_data = resolvers[index->method].user_data;
@ -270,7 +270,7 @@ gst_index_get_property (GObject * object, guint prop_id,
index = GST_INDEX (object);
switch (prop_id) {
case ARG_RESOLVER:
case PROP_RESOLVER:
g_value_set_enum (value, index->method);
break;
default:

View file

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

View file

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

View file

@ -58,8 +58,8 @@
enum
{
ARG_0,
ARG_PREFER_V1
PROP_0,
PROP_PREFER_V1
};
#define DEFAULT_PREFER_V1 FALSE
@ -102,7 +102,7 @@ gst_id3demux_class_init (GstID3DemuxClass * klass)
gobject_class->set_property = gst_id3demux_set_property;
gobject_class->get_property = gst_id3demux_get_property;
g_object_class_install_property (gobject_class, ARG_PREFER_V1,
g_object_class_install_property (gobject_class, PROP_PREFER_V1,
g_param_spec_boolean ("prefer-v1", "Prefer version 1 tag",
"Prefer tags from ID3v1 tag at end of file when both ID3v1 "
"and ID3v2 tags are present", DEFAULT_PREFER_V1,
@ -239,7 +239,7 @@ gst_id3demux_set_property (GObject * object, guint prop_id,
id3demux = GST_ID3DEMUX (object);
switch (prop_id) {
case ARG_PREFER_V1:{
case PROP_PREFER_V1:{
GST_OBJECT_LOCK (id3demux);
id3demux->prefer_v1 = g_value_get_boolean (value);
GST_OBJECT_UNLOCK (id3demux);
@ -260,7 +260,7 @@ gst_id3demux_get_property (GObject * object, guint prop_id,
id3demux = GST_ID3DEMUX (object);
switch (prop_id) {
case ARG_PREFER_V1:
case PROP_PREFER_V1:
GST_OBJECT_LOCK (id3demux);
g_value_set_boolean (value, id3demux->prefer_v1);
GST_OBJECT_UNLOCK (id3demux);

View file

@ -73,7 +73,7 @@ enum
enum
{
ARG_0,
PROP_0,
};
static GstStaticPadTemplate gst_rtp_xqt_depay_src_template =

View file

@ -47,7 +47,7 @@ enum
enum
{
ARG_0
PROP_0
};
#define gst_mulawdec_parent_class parent_class

View file

@ -43,7 +43,7 @@ enum
enum
{
ARG_0
PROP_0
};
static gboolean gst_mulawenc_start (GstAudioEncoder * audioenc);

View file

@ -80,10 +80,10 @@ GST_DEBUG_CATEGORY_STATIC (matroskademux_debug);
enum
{
ARG_0,
ARG_METADATA,
ARG_STREAMINFO,
ARG_MAX_GAP_TIME
PROP_0,
PROP_METADATA,
PROP_STREAMINFO,
PROP_MAX_GAP_TIME
};
#define DEFAULT_MAX_GAP_TIME (2 * GST_SECOND)
@ -208,7 +208,7 @@ gst_matroska_demux_class_init (GstMatroskaDemuxClass * klass)
gobject_class->get_property = gst_matroska_demux_get_property;
gobject_class->set_property = gst_matroska_demux_set_property;
g_object_class_install_property (gobject_class, ARG_MAX_GAP_TIME,
g_object_class_install_property (gobject_class, PROP_MAX_GAP_TIME,
g_param_spec_uint64 ("max-gap-time", "Maximum gap time",
"The demuxer sends out segment events for skipping "
"gaps longer than this (0 = disabled).", 0, G_MAXUINT64,
@ -5719,7 +5719,7 @@ gst_matroska_demux_set_property (GObject * object,
demux = GST_MATROSKA_DEMUX (object);
switch (prop_id) {
case ARG_MAX_GAP_TIME:
case PROP_MAX_GAP_TIME:
GST_OBJECT_LOCK (demux);
demux->max_gap_time = g_value_get_uint64 (value);
GST_OBJECT_UNLOCK (demux);
@ -5740,7 +5740,7 @@ gst_matroska_demux_get_property (GObject * object,
demux = GST_MATROSKA_DEMUX (object);
switch (prop_id) {
case ARG_MAX_GAP_TIME:
case PROP_MAX_GAP_TIME:
GST_OBJECT_LOCK (demux);
g_value_set_uint64 (value, demux->max_gap_time);
GST_OBJECT_UNLOCK (demux);

View file

@ -64,11 +64,11 @@ GST_DEBUG_CATEGORY_STATIC (matroskamux_debug);
enum
{
ARG_0,
ARG_WRITING_APP,
ARG_DOCTYPE_VERSION,
ARG_MIN_INDEX_INTERVAL,
ARG_STREAMABLE
PROP_0,
PROP_WRITING_APP,
PROP_DOCTYPE_VERSION,
PROP_MIN_INDEX_INTERVAL,
PROP_STREAMABLE
};
#define DEFAULT_DOCTYPE_VERSION 2
@ -311,21 +311,21 @@ gst_matroska_mux_class_init (GstMatroskaMuxClass * klass)
gobject_class->get_property = gst_matroska_mux_get_property;
gobject_class->set_property = gst_matroska_mux_set_property;
g_object_class_install_property (gobject_class, ARG_WRITING_APP,
g_object_class_install_property (gobject_class, PROP_WRITING_APP,
g_param_spec_string ("writing-app", "Writing application.",
"The name the application that creates the matroska file.",
NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_DOCTYPE_VERSION,
g_object_class_install_property (gobject_class, PROP_DOCTYPE_VERSION,
g_param_spec_int ("version", "DocType version",
"This parameter determines what Matroska features can be used.",
1, 2, DEFAULT_DOCTYPE_VERSION,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_MIN_INDEX_INTERVAL,
g_object_class_install_property (gobject_class, PROP_MIN_INDEX_INTERVAL,
g_param_spec_int64 ("min-index-interval", "Minimum time between index "
"entries", "An index entry is created every so many nanoseconds.",
0, G_MAXINT64, DEFAULT_MIN_INDEX_INTERVAL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_STREAMABLE,
g_object_class_install_property (gobject_class, PROP_STREAMABLE,
g_param_spec_boolean ("streamable", "Determines whether output should "
"be streamable", "If set to true, the output should be as if it is "
"to be streamed and hence no indexes written or duration written.",
@ -3724,7 +3724,7 @@ gst_matroska_mux_set_property (GObject * object,
mux = GST_MATROSKA_MUX (object);
switch (prop_id) {
case ARG_WRITING_APP:
case PROP_WRITING_APP:
if (!g_value_get_string (value)) {
GST_WARNING_OBJECT (mux, "writing-app property can not be NULL");
break;
@ -3732,13 +3732,13 @@ gst_matroska_mux_set_property (GObject * object,
g_free (mux->writing_app);
mux->writing_app = g_value_dup_string (value);
break;
case ARG_DOCTYPE_VERSION:
case PROP_DOCTYPE_VERSION:
mux->doctype_version = g_value_get_int (value);
break;
case ARG_MIN_INDEX_INTERVAL:
case PROP_MIN_INDEX_INTERVAL:
mux->min_index_interval = g_value_get_int64 (value);
break;
case ARG_STREAMABLE:
case PROP_STREAMABLE:
mux->streamable = g_value_get_boolean (value);
break;
default:
@ -3757,16 +3757,16 @@ gst_matroska_mux_get_property (GObject * object,
mux = GST_MATROSKA_MUX (object);
switch (prop_id) {
case ARG_WRITING_APP:
case PROP_WRITING_APP:
g_value_set_string (value, mux->writing_app);
break;
case ARG_DOCTYPE_VERSION:
case PROP_DOCTYPE_VERSION:
g_value_set_int (value, mux->doctype_version);
break;
case ARG_MIN_INDEX_INTERVAL:
case PROP_MIN_INDEX_INTERVAL:
g_value_set_int64 (value, mux->min_index_interval);
break;
case ARG_STREAMABLE:
case PROP_STREAMABLE:
g_value_set_boolean (value, mux->streamable);
break;
default:

View file

@ -79,9 +79,9 @@ GST_DEBUG_CATEGORY_STATIC (matroskaparse_debug);
enum
{
ARG_0,
ARG_METADATA,
ARG_STREAMINFO
PROP_0,
PROP_METADATA,
PROP_STREAMINFO
};
static GstStaticPadTemplate sink_templ = GST_STATIC_PAD_TEMPLATE ("sink",

View file

@ -72,13 +72,13 @@ GST_DEBUG_CATEGORY_STATIC (gst_multi_file_src_debug);
enum
{
ARG_0,
ARG_LOCATION,
ARG_INDEX,
ARG_START_INDEX,
ARG_STOP_INDEX,
ARG_CAPS,
ARG_LOOP
PROP_0,
PROP_LOCATION,
PROP_INDEX,
PROP_START_INDEX,
PROP_STOP_INDEX,
PROP_CAPS,
PROP_LOOP
};
#define DEFAULT_LOCATION "%05d"
@ -143,35 +143,35 @@ gst_multi_file_src_class_init (GstMultiFileSrcClass * klass)
gobject_class->set_property = gst_multi_file_src_set_property;
gobject_class->get_property = gst_multi_file_src_get_property;
g_object_class_install_property (gobject_class, ARG_LOCATION,
g_object_class_install_property (gobject_class, PROP_LOCATION,
g_param_spec_string ("location", "File Location",
"Pattern to create file names of input files. File names are "
"created by calling sprintf() with the pattern and the current "
"index.", DEFAULT_LOCATION,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_INDEX,
g_object_class_install_property (gobject_class, PROP_INDEX,
g_param_spec_int ("index", "File Index",
"Index to use with location property to create file names. The "
"index is incremented by one for each buffer read.",
0, INT_MAX, DEFAULT_INDEX,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_START_INDEX,
g_object_class_install_property (gobject_class, PROP_START_INDEX,
g_param_spec_int ("start-index", "Start Index",
"Start value of index. The initial value of index can be set "
"either by setting index or start-index. When the end of the loop "
"is reached, the index will be set to the value start-index.",
0, INT_MAX, DEFAULT_INDEX,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_STOP_INDEX,
g_object_class_install_property (gobject_class, PROP_STOP_INDEX,
g_param_spec_int ("stop-index", "Stop Index",
"Stop value of index. The special value -1 means no stop.",
-1, INT_MAX, DEFAULT_INDEX,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_CAPS,
g_object_class_install_property (gobject_class, PROP_CAPS,
g_param_spec_boxed ("caps", "Caps",
"Caps describing the format of the data.",
GST_TYPE_CAPS, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_LOOP,
g_object_class_install_property (gobject_class, PROP_LOOP,
g_param_spec_boolean ("loop", "Loop",
"Whether to repeat from the beginning when all files have been read.",
FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@ -295,19 +295,19 @@ gst_multi_file_src_set_property (GObject * object, guint prop_id,
GstMultiFileSrc *src = GST_MULTI_FILE_SRC (object);
switch (prop_id) {
case ARG_LOCATION:
case PROP_LOCATION:
gst_multi_file_src_set_location (src, g_value_get_string (value));
break;
case ARG_INDEX:
case PROP_INDEX:
src->index = g_value_get_int (value);
break;
case ARG_START_INDEX:
case PROP_START_INDEX:
src->start_index = g_value_get_int (value);
break;
case ARG_STOP_INDEX:
case PROP_STOP_INDEX:
src->stop_index = g_value_get_int (value);
break;
case ARG_CAPS:
case PROP_CAPS:
{
GstStructure *st = NULL;
const GstCaps *caps = gst_value_get_caps (value);
@ -333,7 +333,7 @@ gst_multi_file_src_set_property (GObject * object, guint prop_id,
}
}
break;
case ARG_LOOP:
case PROP_LOOP:
src->loop = g_value_get_boolean (value);
break;
default:
@ -349,22 +349,22 @@ gst_multi_file_src_get_property (GObject * object, guint prop_id,
GstMultiFileSrc *src = GST_MULTI_FILE_SRC (object);
switch (prop_id) {
case ARG_LOCATION:
case PROP_LOCATION:
g_value_set_string (value, src->filename);
break;
case ARG_INDEX:
case PROP_INDEX:
g_value_set_int (value, src->index);
break;
case ARG_START_INDEX:
case PROP_START_INDEX:
g_value_set_int (value, src->start_index);
break;
case ARG_STOP_INDEX:
case PROP_STOP_INDEX:
g_value_set_int (value, src->stop_index);
break;
case ARG_CAPS:
case PROP_CAPS:
gst_value_set_caps (value, src->caps);
break;
case ARG_LOOP:
case PROP_LOOP:
g_value_set_boolean (value, src->loop);
break;
default:

View file

@ -47,8 +47,8 @@ GST_DEBUG_CATEGORY_STATIC (gst_multipart_mux_debug);
enum
{
ARG_0,
ARG_BOUNDARY
PROP_0,
PROP_BOUNDARY
/* FILL ME */
};
@ -114,7 +114,7 @@ gst_multipart_mux_class_init (GstMultipartMuxClass * klass)
gobject_class->get_property = gst_multipart_mux_get_property;
gobject_class->set_property = gst_multipart_mux_set_property;
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_BOUNDARY,
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_BOUNDARY,
g_param_spec_string ("boundary", "Boundary", "Boundary string",
DEFAULT_BOUNDARY, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@ -153,8 +153,8 @@ gst_multipart_mux_init (GstMultipartMux * multipart_mux)
multipart_mux->collect = gst_collect_pads_new ();
gst_collect_pads_set_event_function (multipart_mux->collect,
(GstCollectPadsEventFunction) GST_DEBUG_FUNCPTR (gst_multipart_mux_sink_event),
multipart_mux);
(GstCollectPadsEventFunction)
GST_DEBUG_FUNCPTR (gst_multipart_mux_sink_event), multipart_mux);
gst_collect_pads_set_function (multipart_mux->collect,
(GstCollectPadsFunction) GST_DEBUG_FUNCPTR (gst_multipart_mux_collected),
multipart_mux);
@ -600,7 +600,7 @@ gst_multipart_mux_get_property (GObject * object,
mux = GST_MULTIPART_MUX (object);
switch (prop_id) {
case ARG_BOUNDARY:
case PROP_BOUNDARY:
g_value_set_string (value, mux->boundary);
break;
default:
@ -618,7 +618,7 @@ gst_multipart_mux_set_property (GObject * object,
mux = GST_MULTIPART_MUX (object);
switch (prop_id) {
case ARG_BOUNDARY:
case PROP_BOUNDARY:
g_free (mux->boundary);
mux->boundary = g_strdup (g_value_get_string (value));
break;

View file

@ -61,7 +61,7 @@ enum
enum
{
ARG_0
PROP_0
};
/* input is an RTP packet
@ -74,8 +74,7 @@ static GstStaticPadTemplate gst_rtp_amr_depay_sink_template =
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("application/x-rtp, "
"media = (string) \"audio\", "
"clock-rate = (int) 8000, "
"encoding-name = (string) \"AMR\", "
"clock-rate = (int) 8000, " "encoding-name = (string) \"AMR\", "
/* This is the default, so the peer doesn't have to specify it
* "encoding-params = (string) \"1\", " */
/* NOTE that all values must be strings in orde to be able to do SDP <->
@ -94,8 +93,7 @@ static GstStaticPadTemplate gst_rtp_amr_depay_sink_template =
*/
"application/x-rtp, "
"media = (string) \"audio\", "
"clock-rate = (int) 16000, "
"encoding-name = (string) \"AMR-WB\", "
"clock-rate = (int) 16000, " "encoding-name = (string) \"AMR-WB\", "
/* This is the default, so the peer doesn't have to specify it
* "encoding-params = (string) \"1\", " */
/* NOTE that all values must be strings in orde to be able to do SDP <->

View file

@ -44,7 +44,7 @@ enum
enum
{
ARG_0
PROP_0
};
static GstStaticPadTemplate gst_rtp_celt_depay_sink_template =

View file

@ -45,7 +45,7 @@ enum
enum
{
ARG_0,
PROP_0,
};
static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",

View file

@ -45,7 +45,7 @@ enum
enum
{
ARG_0
PROP_0
};
/* input is an RTP packet

View file

@ -43,7 +43,7 @@ enum
enum
{
ARG_0
PROP_0
};
/* input is an RTP packet

View file

@ -58,8 +58,8 @@ GST_STATIC_PAD_TEMPLATE ("src",
enum
{
ARG_0,
ARG_CONFIG_INTERVAL
PROP_0,
PROP_CONFIG_INTERVAL
};
@ -103,7 +103,7 @@ G_DEFINE_TYPE (GstRtpMP4VPay, gst_rtp_mp4v_pay, GST_TYPE_RTP_BASE_PAYLOAD)
"Payload MPEG-4 video as RTP packets (RFC 3016)",
"Wim Taymans <wim.taymans@gmail.com>");
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_CONFIG_INTERVAL,
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_CONFIG_INTERVAL,
g_param_spec_uint ("config-interval", "Config Send Interval",
"Send Config Insertion Interval in seconds (configuration headers "
"will be multiplexed in the data stream when detected.) (0 = disabled)",
@ -584,7 +584,7 @@ gst_rtp_mp4v_pay_set_property (GObject * object, guint prop_id,
rtpmp4vpay = GST_RTP_MP4V_PAY (object);
switch (prop_id) {
case ARG_CONFIG_INTERVAL:
case PROP_CONFIG_INTERVAL:
rtpmp4vpay->config_interval = g_value_get_uint (value);
break;
default:
@ -601,7 +601,7 @@ gst_rtp_mp4v_pay_get_property (GObject * object, guint prop_id,
rtpmp4vpay = GST_RTP_MP4V_PAY (object);
switch (prop_id) {
case ARG_CONFIG_INTERVAL:
case PROP_CONFIG_INTERVAL:
g_value_set_uint (value, rtpmp4vpay->config_interval);
break;
default:

View file

@ -36,7 +36,7 @@ enum
enum
{
ARG_0
PROP_0
};
static GstStaticPadTemplate gst_rtp_pcma_depay_sink_template =

View file

@ -36,7 +36,7 @@ enum
enum
{
ARG_0
PROP_0
};
static GstStaticPadTemplate gst_rtp_pcmu_depay_sink_template =

View file

@ -45,7 +45,7 @@ enum
enum
{
ARG_0
PROP_0
};
static GstStaticPadTemplate gst_rtp_qcelp_depay_sink_template =

View file

@ -36,7 +36,7 @@ enum
enum
{
ARG_0
PROP_0
};
static GstStaticPadTemplate gst_rtp_speex_depay_sink_template =

View file

@ -63,7 +63,7 @@ GST_DEBUG_CATEGORY_STATIC (gst_rtp_mux_debug);
enum
{
ARG_0,
PROP_0,
PROP_TIMESTAMP_OFFSET,
PROP_SEQNUM_OFFSET,
PROP_SEQNUM,

View file

@ -50,8 +50,8 @@ GST_DEBUG_CATEGORY_STATIC (aspect_ratio_crop_debug);
enum
{
ARG_0,
ARG_ASPECT_RATIO_CROP,
PROP_0,
PROP_ASPECT_RATIO_CROP,
};
/* we support the same caps as videocrop (sync changes) */
@ -183,7 +183,7 @@ gst_aspect_ratio_crop_class_init (GstAspectRatioCropClass * klass)
gobject_class->get_property = gst_aspect_ratio_crop_get_property;
gobject_class->finalize = gst_aspect_ratio_crop_finalize;
g_object_class_install_property (gobject_class, ARG_ASPECT_RATIO_CROP,
g_object_class_install_property (gobject_class, PROP_ASPECT_RATIO_CROP,
gst_param_spec_fraction ("aspect-ratio", "aspect-ratio",
"Target aspect-ratio of video", 0, 1, G_MAXINT, 1, 0, 1,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@ -448,7 +448,7 @@ gst_aspect_ratio_crop_set_property (GObject * object, guint prop_id,
GST_OBJECT_LOCK (aspect_ratio_crop);
switch (prop_id) {
case ARG_ASPECT_RATIO_CROP:
case PROP_ASPECT_RATIO_CROP:
if (GST_VALUE_HOLDS_FRACTION (value)) {
aspect_ratio_crop->ar_num = gst_value_get_fraction_numerator (value);
aspect_ratio_crop->ar_denom =
@ -479,7 +479,7 @@ gst_aspect_ratio_crop_get_property (GObject * object, guint prop_id,
GST_OBJECT_LOCK (aspect_ratio_crop);
switch (prop_id) {
case ARG_ASPECT_RATIO_CROP:
case PROP_ASPECT_RATIO_CROP:
gst_value_set_fraction (value, aspect_ratio_crop->ar_num,
aspect_ratio_crop->ar_denom);
break;

View file

@ -70,11 +70,11 @@ GST_DEBUG_CATEGORY_STATIC (videocrop_debug);
enum
{
ARG_0,
ARG_LEFT,
ARG_RIGHT,
ARG_TOP,
ARG_BOTTOM
PROP_0,
PROP_LEFT,
PROP_RIGHT,
PROP_TOP,
PROP_BOTTOM
};
/* we support the same caps as aspectratiocrop (sync changes) */
@ -177,19 +177,19 @@ gst_video_crop_class_init (GstVideoCropClass * klass)
gobject_class->set_property = gst_video_crop_set_property;
gobject_class->get_property = gst_video_crop_get_property;
g_object_class_install_property (gobject_class, ARG_LEFT,
g_object_class_install_property (gobject_class, PROP_LEFT,
g_param_spec_int ("left", "Left",
"Pixels to crop at left (-1 to auto-crop)", -1, G_MAXINT, 0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_RIGHT,
g_object_class_install_property (gobject_class, PROP_RIGHT,
g_param_spec_int ("right", "Right",
"Pixels to crop at right (-1 to auto-crop)", -1, G_MAXINT, 0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_TOP,
g_object_class_install_property (gobject_class, PROP_TOP,
g_param_spec_int ("top", "Top",
"Pixels to crop at top (-1 to auto-crop)", -1, G_MAXINT, 0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_BOTTOM,
g_object_class_install_property (gobject_class, PROP_BOTTOM,
g_param_spec_int ("bottom", "Bottom",
"Pixels to crop at bottom (-1 to auto-crop)", -1, G_MAXINT, 0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@ -739,19 +739,19 @@ gst_video_crop_set_property (GObject * object, guint prop_id,
GST_OBJECT_LOCK (video_crop);
switch (prop_id) {
case ARG_LEFT:
case PROP_LEFT:
gst_video_crop_set_crop (video_crop, g_value_get_int (value),
&video_crop->prop_left);
break;
case ARG_RIGHT:
case PROP_RIGHT:
gst_video_crop_set_crop (video_crop, g_value_get_int (value),
&video_crop->prop_right);
break;
case ARG_TOP:
case PROP_TOP:
gst_video_crop_set_crop (video_crop, g_value_get_int (value),
&video_crop->prop_top);
break;
case ARG_BOTTOM:
case PROP_BOTTOM:
gst_video_crop_set_crop (video_crop, g_value_get_int (value),
&video_crop->prop_bottom);
break;
@ -778,16 +778,16 @@ gst_video_crop_get_property (GObject * object, guint prop_id, GValue * value,
GST_OBJECT_LOCK (video_crop);
switch (prop_id) {
case ARG_LEFT:
case PROP_LEFT:
g_value_set_int (value, video_crop->prop_left);
break;
case ARG_RIGHT:
case PROP_RIGHT:
g_value_set_int (value, video_crop->prop_right);
break;
case ARG_TOP:
case PROP_TOP:
g_value_set_int (value, video_crop->prop_top);
break;
case ARG_BOTTOM:
case PROP_BOTTOM:
g_value_set_int (value, video_crop->prop_bottom);
break;
default:

View file

@ -68,7 +68,7 @@ enum
enum
{
ARG_0
PROP_0
/* FILL ME */
};
@ -145,7 +145,7 @@ gst_videotemplate_class_init (gpointer g_class, gpointer class_data)
videofilter_class = GST_VIDEOFILTER_CLASS (g_class);
#if 0
g_object_class_install_property (gobject_class, ARG_METHOD,
g_object_class_install_property (gobject_class, PROP_METHOD,
g_param_spec_enum ("method", "method", "method",
GST_TYPE_VIDEOTEMPLATE_METHOD, GST_VIDEOTEMPLATE_METHOD_1,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@ -182,7 +182,7 @@ gst_videotemplate_set_property (GObject * object, guint prop_id,
GST_DEBUG ("gst_videotemplate_set_property");
switch (prop_id) {
#if 0
case ARG_METHOD:
case PROP_METHOD:
src->method = g_value_get_enum (value);
break;
#endif
@ -202,7 +202,7 @@ gst_videotemplate_get_property (GObject * object, guint prop_id, GValue * value,
switch (prop_id) {
#if 0
case ARG_METHOD:
case PROP_METHOD:
g_value_set_enum (value, src->method);
break;
#endif

View file

@ -56,7 +56,7 @@ enum
enum
{
ARG_0
PROP_0
};
static GstStaticPadTemplate y4mencode_src_factory =