summaryrefslogtreecommitdiff
path: root/ext/jack
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-03-18 17:30:26 +0100
committerBenjamin Otte <otte@redhat.com>2010-03-18 22:46:41 +0100
commit775c7584fdad53053ae5b22bb19074cc6022ee98 (patch)
tree149c7daf4efd3ecaf17a179949e20b44347859ab /ext/jack
parent5258d372be503da09fa21fbde28afe619bc0cdc1 (diff)
downloadgstreamer-plugins-bad-775c7584fdad53053ae5b22bb19074cc6022ee98.tar.gz
gst_element_class_set_details => gst_element_class_set_details_simple
Diffstat (limited to 'ext/jack')
-rw-r--r--ext/jack/gstjackaudiosink.c10
-rw-r--r--ext/jack/gstjackaudiosrc.c11
2 files changed, 6 insertions, 15 deletions
diff --git a/ext/jack/gstjackaudiosink.c b/ext/jack/gstjackaudiosink.c
index 0e75f16d2..40ee5a0fe 100644
--- a/ext/jack/gstjackaudiosink.c
+++ b/ext/jack/gstjackaudiosink.c
@@ -621,13 +621,6 @@ gst_jack_ring_buffer_delay (GstRingBuffer * buf)
return res;
}
-/* elementfactory information */
-static const GstElementDetails gst_jack_audio_sink_details =
-GST_ELEMENT_DETAILS ("Audio Sink (Jack)",
- "Sink/Audio",
- "Output to Jack",
- "Wim Taymans <wim@fluendo.com>");
-
static GstStaticPadTemplate jackaudiosink_sink_factory =
GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
@@ -676,7 +669,8 @@ gst_jack_audio_sink_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
- gst_element_class_set_details (element_class, &gst_jack_audio_sink_details);
+ gst_element_class_set_details_simple (element_class, "Audio Sink (Jack)",
+ "Sink/Audio", "Output to Jack", "Wim Taymans <wim@fluendo.com>");
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&jackaudiosink_sink_factory));
diff --git a/ext/jack/gstjackaudiosrc.c b/ext/jack/gstjackaudiosrc.c
index 211e1d2e6..da97404fa 100644
--- a/ext/jack/gstjackaudiosrc.c
+++ b/ext/jack/gstjackaudiosrc.c
@@ -678,17 +678,14 @@ static GstRingBuffer *gst_jack_audio_src_create_ringbuffer (GstBaseAudioSrc *
static void
gst_jack_audio_src_base_init (gpointer gclass)
{
- static GstElementDetails gst_jack_audio_src_details = {
- "Audio Source (Jack)",
- "Source/Audio",
- "Input from Jack",
- "Tristan Matthews <tristan@sat.qc.ca>"
- };
+
GstElementClass *element_class = GST_ELEMENT_CLASS (gclass);
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&src_factory));
- gst_element_class_set_details (element_class, &gst_jack_audio_src_details);
+ gst_element_class_set_details_simple (element_class, "Audio Source (Jack)",
+ "Source/Audio",
+ "Input from Jack", "Tristan Matthews <tristan@sat.qc.ca>");
}
/* initialize the jack_audio_src's class */