summaryrefslogtreecommitdiff
path: root/ext/resindvd/rsndec.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/resindvd/rsndec.c')
-rw-r--r--ext/resindvd/rsndec.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/resindvd/rsndec.c b/ext/resindvd/rsndec.c
index 3403d9a39..02d3eb645 100644
--- a/ext/resindvd/rsndec.c
+++ b/ext/resindvd/rsndec.c
@@ -405,10 +405,10 @@ rsn_audiodec_class_init (RsnAudioDecClass * klass)
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
RsnDecClass *dec_class = RSN_DEC_CLASS (klass);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&audio_src_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&audio_sink_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &audio_src_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &audio_sink_template);
gst_element_class_set_static_metadata (element_class, "RsnAudioDec",
"Audio/Decoder",
@@ -455,10 +455,10 @@ rsn_videodec_class_init (RsnAudioDecClass * klass)
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
RsnDecClass *dec_class = RSN_DEC_CLASS (klass);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&video_src_template));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&video_sink_template));
+ gst_element_class_add_static_pad_template (element_class,
+ &video_src_template);
+ gst_element_class_add_static_pad_template (element_class,
+ &video_sink_template);
gst_element_class_set_static_metadata (element_class, "RsnVideoDec",
"Video/Decoder",