diff options
Diffstat (limited to 'ext/opencv/gstmotioncells.c')
-rw-r--r-- | ext/opencv/gstmotioncells.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/opencv/gstmotioncells.c b/ext/opencv/gstmotioncells.c index bf2eb7f60..49ad8ba3e 100644 --- a/ext/opencv/gstmotioncells.c +++ b/ext/opencv/gstmotioncells.c @@ -211,10 +211,8 @@ gst_motion_cells_base_init (gpointer gclass) "Performs motion detection on videos and images, providing detected motion cells index via bus messages", "Robert Jobbagy <jobbagy dot robert at gmail dot com>, Nicola Murino <nicola dot murino at 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 motioncells's class */ |