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:
Tim-Philipp Müller 2012-11-03 13:51:12 +00:00
parent 6fbf96d3e4
commit fa20fba1a2

View file

@ -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 \