summaryrefslogtreecommitdiffstats
path: root/gst/passthrough/gstpassthrough.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/passthrough/gstpassthrough.c')
-rw-r--r--gst/passthrough/gstpassthrough.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gst/passthrough/gstpassthrough.c b/gst/passthrough/gstpassthrough.c
index 4524f69f..5ccfe1aa 100644
--- a/gst/passthrough/gstpassthrough.c
+++ b/gst/passthrough/gstpassthrough.c
@@ -193,12 +193,10 @@ static void
passthrough_init (GstPassthrough * filter)
{
filter->srcpad =
- gst_pad_new_from_template (gst_static_pad_template_get
- (&passthrough_src_template), "src");
+ gst_pad_new_from_static_template (&passthrough_src_template, "src");
gst_element_add_pad (GST_ELEMENT (filter), filter->srcpad);
filter->sinkpad =
- gst_pad_new_from_template (gst_static_pad_template_get
- (&passthrough_sink_template), "sink");
+ gst_pad_new_from_static_template (&passthrough_sink_template, "sink");
gst_element_add_pad (GST_ELEMENT (filter), filter->sinkpad);
gst_pad_set_link_function (filter->sinkpad, passthrough_connect_sink);