summaryrefslogtreecommitdiff
path: root/ext/opencv/textwrite/gsttextwrite.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/opencv/textwrite/gsttextwrite.c')
-rw-r--r--ext/opencv/textwrite/gsttextwrite.c3
1 files changed, 2 insertions, 1 deletions
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);
}