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; int min_distance, distance;
Rect temp_r; Rect temp_r;
CvPoint c; CvPoint c;
/* set frame buffer writable */
if (filter->display) { if (filter->display) {
buffer = gst_buffer_make_writable (buffer);
GST_DEBUG_OBJECT (filter, "%d PALM gestures detected\n", GST_DEBUG_OBJECT (filter, "%d PALM gestures detected\n",
(int) hands.size ()); (int) hands.size ());
} }