mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
opencv: fix warnings and build against opencv 2.4.x
gstpyramidsegment.c: In function 'gst_pyramid_segment_chain': gstpyramidsegment.c:307:3: error: implicit declaration of function 'cvPyrSegmentation' [-Werror=implicit-function-declaration] gstpyramidsegment.c:307:3: error: nested extern declaration of 'cvPyrSegmentation' [-Werror=nested-externs] https://bugzilla.gnome.org/show_bug.cgi?id=687237
This commit is contained in:
parent
6fbf96d3e4
commit
fa20fba1a2
1 changed files with 4 additions and 0 deletions
|
@ -49,6 +49,10 @@
|
|||
#include <gst/gst.h>
|
||||
#include <cv.h>
|
||||
|
||||
#if CV_MAJOR_VERSION * 100 + CV_MINOR_VERSION >= 204
|
||||
#include <opencv2/legacy/legacy.hpp>
|
||||
#endif
|
||||
|
||||
G_BEGIN_DECLS
|
||||
/* #defines don't like whitespacey bits */
|
||||
#define GST_TYPE_PYRAMID_SEGMENT \
|
||||
|
|
Loading…
Reference in a new issue