summaryrefslogtreecommitdiff
path: root/ext/opencv/gstcvlaplace.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/opencv/gstcvlaplace.c')
-rw-r--r--ext/opencv/gstcvlaplace.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/opencv/gstcvlaplace.c b/ext/opencv/gstcvlaplace.c
index de8649cd1..39453e63b 100644
--- a/ext/opencv/gstcvlaplace.c
+++ b/ext/opencv/gstcvlaplace.c
@@ -122,10 +122,8 @@ gst_cv_laplace_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 (&sink_factory));
+ 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_set_details_simple (element_class,
"cvlaplace",