textoverlay: remove unused variable

Memory is reserved for this variable but never used. Removing it.
This commit is contained in:
Luis de Bethencourt 2015-08-26 18:40:35 +01:00
parent ad0d035150
commit a77d61edc5
2 changed files with 0 additions and 8 deletions

View file

@ -137,10 +137,6 @@ gst_opencv_text_overlay_finalize (GObject * obj)
cvReleaseImage (&filter->cvImage);
}
if (filter->cvStorage) {
cvReleaseMemStorage (&filter->cvStorage);
}
g_free (filter->textbuf);
G_OBJECT_CLASS (gst_opencv_text_overlay_parent_class)->finalize (obj);
@ -360,9 +356,6 @@ gst_opencv_text_overlay_handle_sink_event (GstPad * pad, GstObject * parent,
}
filter->cvImage = cvCreateImage (cvSize (width, height), IPL_DEPTH_8U, 3);
if (!filter->cvStorage) {
filter->cvStorage = cvCreateMemStorage (0);
}
break;
}
default:

View file

@ -73,7 +73,6 @@ struct _GstOpencvTextOverlay
GstPad *sinkpad, *srcpad;
IplImage *cvImage;
CvMemStorage *cvStorage;
CvFont font;
gint xpos;