diff options
Diffstat (limited to 'ext/opencv/gstcvlaplace.cpp')
-rw-r--r-- | ext/opencv/gstcvlaplace.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/opencv/gstcvlaplace.cpp b/ext/opencv/gstcvlaplace.cpp index c98945615..c8293bdf0 100644 --- a/ext/opencv/gstcvlaplace.cpp +++ b/ext/opencv/gstcvlaplace.cpp @@ -164,10 +164,8 @@ gst_cv_laplace_class_init (GstCvLaplaceClass * klass) "Sets whether the detected edges should be used as a mask on the original input or not", DEFAULT_MASK, (GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS))); - 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_static_metadata (element_class, "cvlaplace", |