Initialize all pointers of CvCapture_GStreamer correctly

This commit is contained in:
Sander Mathijs van Veen 2014-07-21 10:12:25 +02:00
parent da1ac35930
commit f8442da945

View File

@ -160,13 +160,17 @@ protected:
void CvCapture_GStreamer::init()
{
pipeline = NULL;
frame = NULL;
buffer = NULL;
buffer_caps = NULL;
uridecodebin = NULL;
color = NULL;
sink = NULL;
#if GST_VERSION_MAJOR > 0
sample = NULL;
info = new GstMapInfo;
#endif
buffer = NULL;
caps = NULL;
buffer_caps = NULL;
frame = NULL;
}
/*!