summaryrefslogtreecommitdiff
path: root/gst/inter
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-01-13 17:00:51 +0100
committerSebastian Dröge <sebastian@centricular.com>2015-01-13 17:01:14 +0100
commit7f27b81e05e7b56eaee7bae7bfa90184063a1f33 (patch)
tree214099e72807182bf495604f23e00b570c52e79d /gst/inter
parentcd5b64133e9077cdfdcad814dd6aef1631bfdc4f (diff)
downloadgstreamer-plugins-bad-7f27b81e05e7b56eaee7bae7bfa90184063a1f33.tar.gz
inter: Use a #define for the default value of the channel property
Diffstat (limited to 'gst/inter')
-rw-r--r--gst/inter/gstinteraudiosink.c6
-rw-r--r--gst/inter/gstinteraudiosrc.c6
-rw-r--r--gst/inter/gstintersubsink.c6
-rw-r--r--gst/inter/gstintersubsrc.c6
-rw-r--r--gst/inter/gstintervideosink.c6
5 files changed, 20 insertions, 10 deletions
diff --git a/gst/inter/gstinteraudiosink.c b/gst/inter/gstinteraudiosink.c
index 22ab7ed05..d8e34ea77 100644
--- a/gst/inter/gstinteraudiosink.c
+++ b/gst/inter/gstinteraudiosink.c
@@ -76,6 +76,8 @@ enum
PROP_CHANNEL
};
+#define DEFAULT_CHANNEL ("default")
+
/* pad templates */
static GstStaticPadTemplate gst_inter_audio_sink_sink_template =
GST_STATIC_PAD_TEMPLATE ("sink",
@@ -121,13 +123,13 @@ gst_inter_audio_sink_class_init (GstInterAudioSinkClass * klass)
g_object_class_install_property (gobject_class, PROP_CHANNEL,
g_param_spec_string ("channel", "Channel",
"Channel name to match inter src and sink elements",
- "default", G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+ DEFAULT_CHANNEL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
}
static void
gst_inter_audio_sink_init (GstInterAudioSink * interaudiosink)
{
- interaudiosink->channel = g_strdup ("default");
+ interaudiosink->channel = g_strdup (DEFAULT_CHANNEL);
interaudiosink->input_adapter = gst_adapter_new ();
}
diff --git a/gst/inter/gstinteraudiosrc.c b/gst/inter/gstinteraudiosrc.c
index 9ee416de4..01522f27a 100644
--- a/gst/inter/gstinteraudiosrc.c
+++ b/gst/inter/gstinteraudiosrc.c
@@ -80,6 +80,8 @@ enum
PROP_PERIOD_TIME
};
+#define DEFAULT_CHANNEL ("default")
+
/* pad templates */
static GstStaticPadTemplate gst_inter_audio_src_src_template =
GST_STATIC_PAD_TEMPLATE ("src",
@@ -128,7 +130,7 @@ gst_inter_audio_src_class_init (GstInterAudioSrcClass * klass)
g_object_class_install_property (gobject_class, PROP_CHANNEL,
g_param_spec_string ("channel", "Channel",
"Channel name to match inter src and sink elements",
- "default", G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+ DEFAULT_CHANNEL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_BUFFER_TIME,
g_param_spec_uint64 ("buffer-time", "Buffer Time",
@@ -155,7 +157,7 @@ gst_inter_audio_src_init (GstInterAudioSrc * interaudiosrc)
gst_base_src_set_live (GST_BASE_SRC (interaudiosrc), TRUE);
gst_base_src_set_blocksize (GST_BASE_SRC (interaudiosrc), -1);
- interaudiosrc->channel = g_strdup ("default");
+ interaudiosrc->channel = g_strdup (DEFAULT_CHANNEL);
interaudiosrc->buffer_time = DEFAULT_AUDIO_BUFFER_TIME;
interaudiosrc->latency_time = DEFAULT_AUDIO_LATENCY_TIME;
interaudiosrc->period_time = DEFAULT_AUDIO_PERIOD_TIME;
diff --git a/gst/inter/gstintersubsink.c b/gst/inter/gstintersubsink.c
index c6428967a..b907c0a28 100644
--- a/gst/inter/gstintersubsink.c
+++ b/gst/inter/gstintersubsink.c
@@ -66,6 +66,8 @@ enum
PROP_CHANNEL
};
+#define DEFAULT_CHANNEL ("default")
+
/* pad templates */
static GstStaticPadTemplate gst_inter_sub_sink_sink_template =
GST_STATIC_PAD_TEMPLATE ("sink",
@@ -109,13 +111,13 @@ gst_inter_sub_sink_class_init (GstInterSubSinkClass * klass)
g_object_class_install_property (gobject_class, PROP_CHANNEL,
g_param_spec_string ("channel", "Channel",
"Channel name to match inter src and sink elements",
- "default", G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+ DEFAULT_CHANNEL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
}
static void
gst_inter_sub_sink_init (GstInterSubSink * intersubsink)
{
- intersubsink->channel = g_strdup ("default");
+ intersubsink->channel = g_strdup (DEFAULT_CHANNEL);
intersubsink->fps_n = 1;
intersubsink->fps_d = 1;
diff --git a/gst/inter/gstintersubsrc.c b/gst/inter/gstintersubsrc.c
index d47c7e3d4..24efc9ff3 100644
--- a/gst/inter/gstintersubsrc.c
+++ b/gst/inter/gstintersubsrc.c
@@ -69,6 +69,8 @@ enum
PROP_CHANNEL
};
+#define DEFAULT_CHANNEL ("default")
+
/* pad templates */
static GstStaticPadTemplate gst_inter_sub_src_src_template =
GST_STATIC_PAD_TEMPLATE ("src",
@@ -111,7 +113,7 @@ gst_inter_sub_src_class_init (GstInterSubSrcClass * klass)
g_object_class_install_property (gobject_class, PROP_CHANNEL,
g_param_spec_string ("channel", "Channel",
"Channel name to match inter src and sink elements",
- "default", G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+ DEFAULT_CHANNEL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
}
static void
@@ -120,7 +122,7 @@ gst_inter_sub_src_init (GstInterSubSrc * intersubsrc)
gst_base_src_set_format (GST_BASE_SRC (intersubsrc), GST_FORMAT_TIME);
gst_base_src_set_live (GST_BASE_SRC (intersubsrc), TRUE);
- intersubsrc->channel = g_strdup ("default");
+ intersubsrc->channel = g_strdup (DEFAULT_CHANNEL);
}
void
diff --git a/gst/inter/gstintervideosink.c b/gst/inter/gstintervideosink.c
index be6e22d31..589150260 100644
--- a/gst/inter/gstintervideosink.c
+++ b/gst/inter/gstintervideosink.c
@@ -72,6 +72,8 @@ enum
PROP_CHANNEL
};
+#define DEFAULT_CHANNEL ("default")
+
/* pad templates */
static GstStaticPadTemplate gst_inter_video_sink_sink_template =
GST_STATIC_PAD_TEMPLATE ("sink",
@@ -116,13 +118,13 @@ gst_inter_video_sink_class_init (GstInterVideoSinkClass * klass)
g_object_class_install_property (gobject_class, PROP_CHANNEL,
g_param_spec_string ("channel", "Channel",
"Channel name to match inter src and sink elements",
- "default", G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+ DEFAULT_CHANNEL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
}
static void
gst_inter_video_sink_init (GstInterVideoSink * intervideosink)
{
- intervideosink->channel = g_strdup ("default");
+ intervideosink->channel = g_strdup (DEFAULT_CHANNEL);
}
void