summaryrefslogtreecommitdiff
path: root/gst/chart/gstchart.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/chart/gstchart.c')
-rw-r--r--gst/chart/gstchart.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gst/chart/gstchart.c b/gst/chart/gstchart.c
index da0a622ff..4e818b62a 100644
--- a/gst/chart/gstchart.c
+++ b/gst/chart/gstchart.c
@@ -138,8 +138,10 @@ gst_chart_base_init (gpointer g_class)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
- gst_element_class_add_static_pad_template (element_class, &src_factory);
- gst_element_class_add_static_pad_template (element_class, &sink_factory);
+ 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 (&sink_factory));
gst_element_class_set_details_simple (element_class, "Chart drawer",
"Visualization",
"Takes frames of data and outputs video frames of a chart of data",