summaryrefslogtreecommitdiff
path: root/gst/dvdspu/gstdvdspu.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/dvdspu/gstdvdspu.c')
-rw-r--r--gst/dvdspu/gstdvdspu.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/gst/dvdspu/gstdvdspu.c b/gst/dvdspu/gstdvdspu.c
index 89b63d899..f57d3c20b 100644
--- a/gst/dvdspu/gstdvdspu.c
+++ b/gst/dvdspu/gstdvdspu.c
@@ -118,12 +118,11 @@ gst_dvd_spu_base_init (gpointer gclass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (gclass);
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&src_factory));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&video_sink_factory));
- gst_element_class_add_pad_template (element_class,
- gst_static_pad_template_get (&subpic_sink_factory));
+ gst_element_class_add_static_pad_template (element_class, &src_factory);
+ gst_element_class_add_static_pad_template (element_class,
+ &video_sink_factory);
+ gst_element_class_add_static_pad_template (element_class,
+ &subpic_sink_factory);
gst_element_class_set_details_simple (element_class, "Sub-picture Overlay",
"Mixer/Video/Overlay/SubPicture/DVD/Bluray",
"Parses Sub-Picture command streams and renders the SPU overlay "