summaryrefslogtreecommitdiff
path: root/ext/spandsp/gstdtmfdetect.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spandsp/gstdtmfdetect.c')
-rw-r--r--ext/spandsp/gstdtmfdetect.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/spandsp/gstdtmfdetect.c b/ext/spandsp/gstdtmfdetect.c
index 41966e453..362edb4f3 100644
--- a/ext/spandsp/gstdtmfdetect.c
+++ b/ext/spandsp/gstdtmfdetect.c
@@ -124,10 +124,8 @@ gst_dtmf_detect_class_init (GstDtmfDetectClass * klass)
gobject_class->finalize = gst_dtmf_detect_finalize;
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&srctemplate));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&sinktemplate));
+ gst_element_class_add_static_pad_template (gstelement_class, &srctemplate);
+ gst_element_class_add_static_pad_template (gstelement_class, &sinktemplate);
gst_element_class_set_static_metadata (gstelement_class,
"DTMF detector element", "Filter/Analyzer/Audio",