mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
configure: enable -Werror to improve code
-Werror on git version is useful to keep code clean.
This commit is contained in:
parent
a33e117af7
commit
069c1369a2
6 changed files with 8 additions and 8 deletions
|
@ -305,7 +305,7 @@ gst_edgedetect_chain (GstPad * pad, GstBuffer * buf)
|
|||
} else {
|
||||
cvCvtColor (filter->cvEdge, filter->cvCEdge, CV_GRAY2RGB);
|
||||
}
|
||||
gst_buffer_set_data (buf, filter->cvCEdge->imageData,
|
||||
gst_buffer_set_data (buf, (guint8 *) filter->cvCEdge->imageData,
|
||||
filter->cvCEdge->imageSize);
|
||||
|
||||
return gst_pad_push (filter->srcpad, buf);
|
||||
|
|
|
@ -282,7 +282,7 @@ gst_faceblur_chain (GstPad * pad, GstBuffer * buf)
|
|||
|
||||
}
|
||||
|
||||
gst_buffer_set_data (buf, filter->cvImage->imageData,
|
||||
gst_buffer_set_data (buf, (guint8 *) filter->cvImage->imageData,
|
||||
filter->cvImage->imageSize);
|
||||
|
||||
return gst_pad_push (filter->srcpad, buf);
|
||||
|
|
|
@ -310,7 +310,7 @@ gst_facedetect_chain (GstPad * pad, GstBuffer * buf)
|
|||
|
||||
}
|
||||
|
||||
gst_buffer_set_data (buf, filter->cvImage->imageData,
|
||||
gst_buffer_set_data (buf, (guint8 *) filter->cvImage->imageData,
|
||||
filter->cvImage->imageSize);
|
||||
|
||||
return gst_pad_push (filter->srcpad, buf);
|
||||
|
|
|
@ -302,7 +302,7 @@ gst_pyramidsegment_chain (GstPad * pad, GstBuffer * buf)
|
|||
cvPyrSegmentation (filter->cvImage, filter->cvSegmentedImage, filter->storage,
|
||||
&(filter->comp), filter->level, filter->threshold1, filter->threshold2);
|
||||
|
||||
gst_buffer_set_data (buf, filter->cvSegmentedImage->imageData,
|
||||
gst_buffer_set_data (buf, (guint8 *) filter->cvSegmentedImage->imageData,
|
||||
filter->cvSegmentedImage->imageSize);
|
||||
|
||||
return gst_pad_push (filter->srcpad, buf);
|
||||
|
|
|
@ -223,7 +223,7 @@ gst_templatematch_set_property (GObject * object, guint prop_id,
|
|||
}
|
||||
break;
|
||||
case PROP_TEMPLATE:
|
||||
filter->template = g_value_get_string (value);
|
||||
filter->template = (char *) g_value_get_string (value);
|
||||
gst_templatematch_load_template (filter);
|
||||
break;
|
||||
case PROP_DISPLAY:
|
||||
|
@ -308,7 +308,6 @@ gst_templatematch_chain (GstPad * pad, GstBuffer * buf)
|
|||
GstTemplateMatch *filter;
|
||||
CvPoint best_pos;
|
||||
double best_res;
|
||||
int i;
|
||||
|
||||
filter = GST_TEMPLATEMATCH (GST_OBJECT_PARENT (pad));
|
||||
buf = gst_buffer_make_writable (buf);
|
||||
|
@ -354,7 +353,7 @@ gst_templatematch_chain (GstPad * pad, GstBuffer * buf)
|
|||
}
|
||||
|
||||
|
||||
gst_buffer_set_data (buf, filter->cvImage->imageData,
|
||||
gst_buffer_set_data (buf, (guint8 *) filter->cvImage->imageData,
|
||||
filter->cvImage->imageSize);
|
||||
|
||||
return gst_pad_push (filter->srcpad, buf);
|
||||
|
|
|
@ -386,7 +386,8 @@ gst_textwrite_chain (GstPad * pad, GstBuffer * buf)
|
|||
|
||||
cvPutText (filter->cvImage,filter->textbuf,cvPoint(filter->xpos,filter->ypos), &(filter->font), cvScalar(filter->colorR,filter->colorG,filter->colorB,0));
|
||||
|
||||
gst_buffer_set_data (buf, filter->cvImage->imageData,filter->cvImage->imageSize);
|
||||
gst_buffer_set_data (buf, (guint8 *) filter->cvImage->imageData,
|
||||
filter->cvImage->imageSize);
|
||||
|
||||
return gst_pad_push (filter->srcpad, buf);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue