{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&srctemplate));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&sinktemplate));
+ gst_element_class_add_static_pad_template (element_class, &srctemplate);
+ gst_element_class_add_static_pad_template (element_class, &sinktemplate);
gst_element_class_set_details_simple (element_class, "DTMF detector element",
"Filter/Analyzer/Audio",
GST_DEBUG_CATEGORY_INIT (gst_dtmf_src_debug, "dtmfsrc", 0, "dtmfsrc element");
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_dtmf_src_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_dtmf_src_template);
gst_element_class_set_details_simple (element_class, "DTMF tone generator",
"Source/Audio",
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_rtp_dtmf_depay_src_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_rtp_dtmf_depay_sink_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_rtp_dtmf_depay_src_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_rtp_dtmf_depay_sink_template);
GST_DEBUG_CATEGORY_INIT (gst_rtp_dtmf_depay_debug,
GST_DEBUG_CATEGORY_INIT (gst_rtp_dtmf_src_debug,
"rtpdtmfsrc", 0, "rtpdtmfsrc element");
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&gst_rtp_dtmf_src_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &gst_rtp_dtmf_src_template);
gst_element_class_set_details_simple (element_class,
"RTP DTMF packet generator", "Source/Network",