summaryrefslogtreecommitdiffstats
path: root/gst/playondemand/gstplayondemand.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/playondemand/gstplayondemand.c')
-rw-r--r--gst/playondemand/gstplayondemand.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gst/playondemand/gstplayondemand.c b/gst/playondemand/gstplayondemand.c
index 2309cacb..91eae05c 100644
--- a/gst/playondemand/gstplayondemand.c
+++ b/gst/playondemand/gstplayondemand.c
@@ -236,11 +236,9 @@ static void
play_on_demand_init (GstPlayOnDemand * filter)
{
filter->srcpad =
- gst_pad_new_from_template (gst_static_pad_template_get
- (&play_on_demand_src_template), "src");
+ gst_pad_new_from_static_template (&play_on_demand_src_template, "src");
filter->sinkpad =
- gst_pad_new_from_template (gst_static_pad_template_get
- (&play_on_demand_sink_template), "sink");
+ gst_pad_new_from_static_template (&play_on_demand_sink_template, "sink");
gst_pad_set_link_function (filter->sinkpad, play_on_demand_pad_link);