summaryrefslogtreecommitdiff
path: root/ext/kate/gstkatedec.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/kate/gstkatedec.c')
-rw-r--r--ext/kate/gstkatedec.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/kate/gstkatedec.c b/ext/kate/gstkatedec.c
index c61d5142f..88a56660d 100644
--- a/ext/kate/gstkatedec.c
+++ b/ext/kate/gstkatedec.c
@@ -162,10 +162,8 @@ gst_kate_dec_class_init (GstKateDecClass * klass)
gstelement_class->change_state =
GST_DEBUG_FUNCPTR (gst_kate_dec_change_state);
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&src_factory));
- gst_element_class_add_pad_template (gstelement_class,
- gst_static_pad_template_get (&sink_factory));
+ gst_element_class_add_static_pad_template (gstelement_class, &src_factory);
+ gst_element_class_add_static_pad_template (gstelement_class, &sink_factory);
gst_element_class_set_static_metadata (gstelement_class,
"Kate stream text decoder", "Codec/Decoder/Subtitle",