diff options
author | Thiago Santos <thiago.sousa.santos@collabora.co.uk> | 2010-04-25 16:27:04 -0300 |
---|---|---|
committer | Thiago Santos <thiago.sousa.santos@collabora.co.uk> | 2010-09-08 17:15:49 -0300 |
commit | 069c1369a242c3318630d271cfbb198854d29e71 (patch) | |
tree | 8a19e345d453ab9bb531fba454a23bb440425618 /ext | |
parent | a33e117af73a7b368db9d436ec39dfb23dca152c (diff) | |
download | gstreamer-plugins-bad-069c1369a242c3318630d271cfbb198854d29e71.tar.gz |
configure: enable -Werror to improve code
-Werror on git version is useful to keep code clean.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/opencv/edgedetect/gstedgedetect.c | 2 | ||||
-rw-r--r-- | ext/opencv/faceblur/gstfaceblur.c | 2 | ||||
-rw-r--r-- | ext/opencv/facedetect/gstfacedetect.c | 2 | ||||
-rw-r--r-- | ext/opencv/pyramidsegment/gstpyramidsegment.c | 2 | ||||
-rw-r--r-- | ext/opencv/templatematch/gsttemplatematch.c | 5 | ||||
-rw-r--r-- | ext/opencv/textwrite/gsttextwrite.c | 3 |
6 files changed, 8 insertions, 8 deletions
diff --git a/ext/opencv/edgedetect/gstedgedetect.c b/ext/opencv/edgedetect/gstedgedetect.c index c88d5e3f3..aa7b37763 100644 --- a/ext/opencv/edgedetect/gstedgedetect.c +++ b/ext/opencv/edgedetect/gstedgedetect.c @@ -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); diff --git a/ext/opencv/faceblur/gstfaceblur.c b/ext/opencv/faceblur/gstfaceblur.c index 5f1deb3a4..a33a708f7 100644 --- a/ext/opencv/faceblur/gstfaceblur.c +++ b/ext/opencv/faceblur/gstfaceblur.c @@ -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); diff --git a/ext/opencv/facedetect/gstfacedetect.c b/ext/opencv/facedetect/gstfacedetect.c index 0928b4544..6494e4399 100644 --- a/ext/opencv/facedetect/gstfacedetect.c +++ b/ext/opencv/facedetect/gstfacedetect.c @@ -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); diff --git a/ext/opencv/pyramidsegment/gstpyramidsegment.c b/ext/opencv/pyramidsegment/gstpyramidsegment.c index e57a70338..7e3e8fe09 100644 --- a/ext/opencv/pyramidsegment/gstpyramidsegment.c +++ b/ext/opencv/pyramidsegment/gstpyramidsegment.c @@ -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); diff --git a/ext/opencv/templatematch/gsttemplatematch.c b/ext/opencv/templatematch/gsttemplatematch.c index 4f4223731..6dad35bb4 100644 --- a/ext/opencv/templatematch/gsttemplatematch.c +++ b/ext/opencv/templatematch/gsttemplatematch.c @@ -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); diff --git a/ext/opencv/textwrite/gsttextwrite.c b/ext/opencv/textwrite/gsttextwrite.c index a96657124..7e5684683 100644 --- a/ext/opencv/textwrite/gsttextwrite.c +++ b/ext/opencv/textwrite/gsttextwrite.c @@ -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); } |