diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2017-02-01 13:44:37 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2017-02-01 13:44:37 +0200 |
commit | 718c4140fac99c2fa7cdb25860566d2d9fa0eec3 (patch) | |
tree | d8de4ed51337e58d95a38325af6f065e76fdaa7e /ext/opencv/gstdewarp.h | |
parent | d7bb3b55425b8b6f910fb331046757947896f9dc (diff) | |
download | gstreamer-plugins-bad-718c4140fac99c2fa7cdb25860566d2d9fa0eec3.tar.gz |
dewarp: Store C++ types as pointers in C structs
Otherwise the destructor will never be called, and we would have to call
the constructors manually at some point... which we never did, so
calling release() on it before it got otherwise initialized caused a
crash. For example when running gst-inspect-1.0.
Diffstat (limited to 'ext/opencv/gstdewarp.h')
-rw-r--r-- | ext/opencv/gstdewarp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/opencv/gstdewarp.h b/ext/opencv/gstdewarp.h index 545a2800b..c8ab32a32 100644 --- a/ext/opencv/gstdewarp.h +++ b/ext/opencv/gstdewarp.h @@ -81,8 +81,8 @@ enum _GstDewarpInterpolationMode { struct _GstDewarp { GstOpencvVideoFilter element; - cv::Mat map_x; - cv::Mat map_y; + cv::Mat *map_x; + cv::Mat *map_y; gdouble x_center; gdouble y_center; gdouble inner_radius; |