mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
0363c1cebf
commit
488549bb54
4 changed files with 6 additions and 7 deletions
|
@ -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>");
|
||||
|
||||
|
|
|
@ -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>");
|
||||
|
||||
|
||||
|
|
|
@ -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>");
|
||||
|
|
|
@ -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>");
|
||||
|
||||
|
|
Loading…
Reference in a new issue