opencv: handdetect: no need to get a writable buffer

No need to get a writable buffer inside cv_trans_func of opencv video
filter. GstBaseTransform takes care of this.
This commit is contained in:
Luis de Bethencourt 2015-10-21 16:51:10 +01:00
parent cc9fa6d69e
commit ec319bb9d2

View file

@ -506,9 +506,8 @@ gst_handdetect_transform_ip (GstOpencvVideoFilter * transform,
int min_distance, distance;
Rect temp_r;
CvPoint c;
/* set frame buffer writable */
if (filter->display) {
buffer = gst_buffer_make_writable (buffer);
GST_DEBUG_OBJECT (filter, "%d PALM gestures detected\n",
(int) hands.size ());
}