From 4ccda2632782713d357105d214382b2741f69530 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 18 Mar 2010 17:30:26 +0100 Subject: [PATCH] gst_element_class_set_details => gst_element_class_set_details_simple --- ext/jack/gstjackaudiosink.c | 10 ++-------- ext/jack/gstjackaudiosrc.c | 11 ++++------- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/ext/jack/gstjackaudiosink.c b/ext/jack/gstjackaudiosink.c index 0e75f16d25..40ee5a0fea 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 "); - 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 "); 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 211e1d2e6d..da97404fa8 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 " - }; + 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 "); } /* initialize the jack_audio_src's class */