diff options
Diffstat (limited to 'ext/opencv/gsttemplatematch.c')
-rw-r--r-- | ext/opencv/gsttemplatematch.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/opencv/gsttemplatematch.c b/ext/opencv/gsttemplatematch.c index 4f26121db..569978270 100644 --- a/ext/opencv/gsttemplatematch.c +++ b/ext/opencv/gsttemplatematch.c @@ -129,10 +129,8 @@ gst_template_match_base_init (gpointer gclass) "Performs template matching on videos and images, providing detected positions via bus messages.", "Noam Lewis <jones.noamle@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); } /* initialize the templatematch's class */ |