diff options
Diffstat (limited to 'ext/opencv/gstpyramidsegment.cpp')
-rw-r--r-- | ext/opencv/gstpyramidsegment.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/opencv/gstpyramidsegment.cpp b/ext/opencv/gstpyramidsegment.cpp index d8247c06d..fae3cf6aa 100644 --- a/ext/opencv/gstpyramidsegment.cpp +++ b/ext/opencv/gstpyramidsegment.cpp @@ -165,10 +165,8 @@ gst_pyramid_segment_class_init (GstPyramidSegmentClass * klass) "Applies pyramid segmentation to a video or image.", "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 |