From ecd6632f1858a218aaa7da7e70344c78f20c4230 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 --- gst/dtmf/gstdtmfdetect.c | 13 ++++--------- gst/dtmf/gstdtmfsrc.c | 12 ++++-------- gst/dtmf/gstrtpdtmfdepay.c | 12 ++++-------- gst/dtmf/gstrtpdtmfsrc.c | 11 +++-------- 4 files changed, 15 insertions(+), 33 deletions(-) diff --git a/gst/dtmf/gstdtmfdetect.c b/gst/dtmf/gstdtmfdetect.c index 5cb7c2c..cf8c058 100644 --- a/gst/dtmf/gstdtmfdetect.c +++ b/gst/dtmf/gstdtmfdetect.c @@ -84,14 +84,6 @@ GST_DEBUG_CATEGORY (dtmf_detect_debug); #define GST_CAT_DEFAULT (dtmf_detect_debug) -/* elementfactory information */ -static const GstElementDetails gst_dtmf_detect_details = -GST_ELEMENT_DETAILS ("DTMF detector element", - "Detect", - "This element detects DTMF tones", - "Olivier Crete "); - - static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, @@ -148,7 +140,10 @@ gst_dtmf_detect_base_init (gpointer klass) gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&sinktemplate)); - gst_element_class_set_details (element_class, &gst_dtmf_detect_details); + gst_element_class_set_details_simple (element_class, "DTMF detector element", + "Detect", + "This element detects DTMF tones", + "Olivier Crete "); } static void diff --git a/gst/dtmf/gstdtmfsrc.c b/gst/dtmf/gstdtmfsrc.c index 39699d8..f1244b6 100644 --- a/gst/dtmf/gstdtmfsrc.c +++ b/gst/dtmf/gstdtmfsrc.c @@ -194,13 +194,6 @@ enum DTMF_KEY_EVENT_D = 15, }; -/* elementfactory information */ -static const GstElementDetails gst_dtmf_src_details = -GST_ELEMENT_DETAILS ("DTMF tone generator", - "Source/Audio", - "Generates DTMF tones", - "Youness Alaoui "); - GST_DEBUG_CATEGORY_STATIC (gst_dtmf_src_debug); #define GST_CAT_DEFAULT gst_dtmf_src_debug @@ -253,7 +246,10 @@ gst_dtmf_src_base_init (gpointer g_class) gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&gst_dtmf_src_template)); - gst_element_class_set_details (element_class, &gst_dtmf_src_details); + gst_element_class_set_details_simple (element_class, "DTMF tone generator", + "Source/Audio", + "Generates DTMF tones", + "Youness Alaoui "); } static void diff --git a/gst/dtmf/gstrtpdtmfdepay.c b/gst/dtmf/gstrtpdtmfdepay.c index 7cdfabf..9f5ae92 100644 --- a/gst/dtmf/gstrtpdtmfdepay.c +++ b/gst/dtmf/gstrtpdtmfdepay.c @@ -164,13 +164,6 @@ enum DTMF_KEY_EVENT_D = 15, }; -/* elementfactory information */ -static const GstElementDetails gst_rtp_dtmfdepay_details = -GST_ELEMENT_DETAILS ("RTP DTMF packet depayloader", - "Codec/Depayloader/Network", - "Generates DTMF Sound from telephone-event RTP packets", - "Youness Alaoui "); - GST_DEBUG_CATEGORY_STATIC (gst_rtp_dtmf_depay_debug); #define GST_CAT_DEFAULT gst_rtp_dtmf_depay_debug @@ -242,7 +235,10 @@ gst_rtp_dtmf_depay_base_init (gpointer klass) GST_DEBUG_CATEGORY_INIT (gst_rtp_dtmf_depay_debug, "rtpdtmfdepay", 0, "rtpdtmfdepay element"); - gst_element_class_set_details (element_class, &gst_rtp_dtmfdepay_details); + gst_element_class_set_details_simple (element_class, + "RTP DTMF packet depayloader", "Codec/Depayloader/Network", + "Generates DTMF Sound from telephone-event RTP packets", + "Youness Alaoui "); } static void diff --git a/gst/dtmf/gstrtpdtmfsrc.c b/gst/dtmf/gstrtpdtmfsrc.c index 65d0ce8..0018cb2 100644 --- a/gst/dtmf/gstrtpdtmfsrc.c +++ b/gst/dtmf/gstrtpdtmfsrc.c @@ -144,13 +144,6 @@ #define MIN_PACKET_REDUNDANCY 1 #define MAX_PACKET_REDUNDANCY 5 -/* elementfactory information */ -static const GstElementDetails gst_rtp_dtmf_src_details = -GST_ELEMENT_DETAILS ("RTP DTMF packet generator", - "Source/Network", - "Generates RTP DTMF packets", - "Zeeshan Ali "); - GST_DEBUG_CATEGORY_STATIC (gst_rtp_dtmf_src_debug); #define GST_CAT_DEFAULT gst_rtp_dtmf_src_debug @@ -228,7 +221,9 @@ gst_rtp_dtmf_src_base_init (gpointer g_class) gst_element_class_add_pad_template (element_class, gst_static_pad_template_get (&gst_rtp_dtmf_src_template)); - gst_element_class_set_details (element_class, &gst_rtp_dtmf_src_details); + gst_element_class_set_details_simple (element_class, + "RTP DTMF packet generator", "Source/Network", + "Generates RTP DTMF packets", "Zeeshan Ali "); } static void -- 2.7.4