summaryrefslogtreecommitdiff
path: root/ext/opencv/gstskindetect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ext/opencv/gstskindetect.cpp')
-rw-r--r--ext/opencv/gstskindetect.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/opencv/gstskindetect.cpp b/ext/opencv/gstskindetect.cpp
index aade23c55..ad81a384a 100644
--- a/ext/opencv/gstskindetect.cpp
+++ b/ext/opencv/gstskindetect.cpp
@@ -163,10 +163,8 @@ gst_skin_detect_class_init (GstSkinDetectClass * klass)
"Performs non-parametric skin detection on input",
"Miguel Casas-Sanchez <miguelecasassanchez@gmail.com>");
- 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);
basesrc_class->stop = gst_skin_detect_stop;
gstopencvbasefilter_class->cv_set_caps = gst_skin_detect_set_caps;