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); cvReleaseImage (&filter->cvImage);
} }
if (filter->cvStorage) {
cvReleaseMemStorage (&filter->cvStorage);
}
g_free (filter->textbuf); g_free (filter->textbuf);
G_OBJECT_CLASS (gst_opencv_text_overlay_parent_class)->finalize (obj); 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); filter->cvImage = cvCreateImage (cvSize (width, height), IPL_DEPTH_8U, 3);
if (!filter->cvStorage) {
filter->cvStorage = cvCreateMemStorage (0);
}
break; break;
} }
default: default:

View file

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