summaryrefslogtreecommitdiffstats
path: root/gst/smoothwave/gstsmoothwave.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/smoothwave/gstsmoothwave.c')
-rw-r--r--gst/smoothwave/gstsmoothwave.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gst/smoothwave/gstsmoothwave.c b/gst/smoothwave/gstsmoothwave.c
index a0ee5e7c..3a2a23b0 100644
--- a/gst/smoothwave/gstsmoothwave.c
+++ b/gst/smoothwave/gstsmoothwave.c
@@ -156,11 +156,8 @@ gst_smoothwave_init (GstSmoothWave * smoothwave)
int i;
smoothwave->sinkpad =
- gst_pad_new_from_template (gst_static_pad_template_get (&sink_template),
- "sink");
- smoothwave->srcpad =
- gst_pad_new_from_template (gst_static_pad_template_get (&src_template),
- "src");
+ gst_pad_new_from_static_template (&sink_template, "sink");
+ smoothwave->srcpad = gst_pad_new_from_static_template (&src_template, "src");
gst_element_add_pad (GST_ELEMENT (smoothwave), smoothwave->sinkpad);
gst_pad_set_chain_function (smoothwave->sinkpad, gst_smoothwave_chain);
gst_pad_set_link_function (smoothwave->sinkpad, gst_sw_sinklink);