summaryrefslogtreecommitdiff
path: root/ext/opencv/gstfacedetect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ext/opencv/gstfacedetect.cpp')
-rw-r--r--ext/opencv/gstfacedetect.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/opencv/gstfacedetect.cpp b/ext/opencv/gstfacedetect.cpp
index aff9979e0..64a6fb456 100644
--- a/ext/opencv/gstfacedetect.cpp
+++ b/ext/opencv/gstfacedetect.cpp
@@ -349,10 +349,8 @@ gst_face_detect_class_init (GstFaceDetectClass * klass)
"Performs face detection on videos and images, providing detected positions via bus messages",
"Michael Sheldon <mike@mikeasoft.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);
}
/* initialize the new element