Commit 93916225 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 fd391a54
......@@ -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:
......
......@@ -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:
......
......@@ -31,7 +31,7 @@
enum
{
ARG_0,
PROP_0,
};
GstStaticPadTemplate cpu_report_src_template = GST_STATIC_PAD_TEMPLATE ("src",
......
......@@ -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);
......
......@@ -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);
......
......@@ -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:
......
......@@ -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,
......
......@@ -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:
......
......@@ -66,7 +66,7 @@ enum
enum
{
ARG_0
PROP_0
/* FILL ME */
};
......
......@@ -62,7 +62,7 @@ enum
enum
{
ARG_0
PROP_0
/* FILL ME */
};
......
......@@ -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);
......
......@@ -73,7 +73,7 @@ enum
enum
{
ARG_0,
PROP_0,
};
static GstStaticPadTemplate gst_rtp_xqt_depay_src_template =
......
......@@ -47,7 +47,7 @@ enum
enum
{
ARG_0
PROP_0
};
#define gst_mulawdec_parent_class parent_class
......
......@@ -43,7 +43,7 @@ enum
enum
{
ARG_0
PROP_0
};
static gboolean gst_mulawenc_start (GstAudioEncoder * audioenc);
......
......@@ -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);
......
......@@ -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:
......
......@@ -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",
......
......@@ -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;