mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
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:
parent
cc9fa6d69e
commit
ec319bb9d2
1 changed files with 1 additions and 2 deletions
|
@ -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 ());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue