summaryrefslogtreecommitdiff
path: root/ext/opencv/gsthanddetect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ext/opencv/gsthanddetect.cpp')
-rw-r--r--ext/opencv/gsthanddetect.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/opencv/gsthanddetect.cpp b/ext/opencv/gsthanddetect.cpp
index e36b80e15..3995b5f3f 100644
--- a/ext/opencv/gsthanddetect.cpp
+++ b/ext/opencv/gsthanddetect.cpp
@@ -245,10 +245,8 @@ gst_handdetect_class_init (GstHanddetectClass * klass)
"Performs hand gesture detection on videos, providing detected hand positions via bus message and navigation event, and deals with hand gesture events",
"Andol Li <andol@andol.info>");
- 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);
}