Use gst_element_class_set_static_metadata()

where possible. Avoids some string copies. Also re-indent
some stuff. Also some indent fixes here and there.
This commit is contained in:
Tim-Philipp Müller 2012-10-17 17:34:26 +01:00
parent 0363c1cebf
commit 488549bb54
4 changed files with 6 additions and 7 deletions

View file

@ -123,8 +123,8 @@ gst_dtmf_detect_class_init (GstDtmfDetectClass * klass)
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&sinktemplate));
gst_element_class_set_metadata (gstelement_class, "DTMF detector element",
"Filter/Analyzer/Audio",
gst_element_class_set_static_metadata (gstelement_class,
"DTMF detector element", "Filter/Analyzer/Audio",
"This element detects DTMF tones",
"Olivier Crete <olivier.crete@collabora.com>");

View file

@ -253,9 +253,8 @@ gst_dtmf_src_class_init (GstDTMFSrcClass * klass)
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&gst_dtmf_src_template));
gst_element_class_set_metadata (gstelement_class, "DTMF tone generator",
"Source/Audio",
"Generates DTMF tones",
gst_element_class_set_static_metadata (gstelement_class,
"DTMF tone generator", "Source/Audio", "Generates DTMF tones",
"Youness Alaoui <youness.alaoui@collabora.co.uk>");

View file

@ -228,7 +228,7 @@ gst_rtp_dtmf_depay_class_init (GstRtpDTMFDepayClass * klass)
GST_DEBUG_CATEGORY_INIT (gst_rtp_dtmf_depay_debug,
"rtpdtmfdepay", 0, "rtpdtmfdepay element");
gst_element_class_set_metadata (gstelement_class,
gst_element_class_set_static_metadata (gstelement_class,
"RTP DTMF packet depayloader", "Codec/Depayloader/Network",
"Generates DTMF Sound from telephone-event RTP packets",
"Youness Alaoui <youness.alaoui@collabora.co.uk>");

View file

@ -216,7 +216,7 @@ gst_rtp_dtmf_src_class_init (GstRTPDTMFSrcClass * klass)
gst_element_class_add_pad_template (gstelement_class,
gst_static_pad_template_get (&gst_rtp_dtmf_src_template));
gst_element_class_set_metadata (gstelement_class,
gst_element_class_set_static_metadata (gstelement_class,
"RTP DTMF packet generator", "Source/Network",
"Generates RTP DTMF packets", "Zeeshan Ali <zeeshan.ali@nokia.com>");