Initialize all pointers of CvCapture_GStreamer correctly

parent da1ac359
...@@ -160,13 +160,17 @@ protected: ...@@ -160,13 +160,17 @@ protected:
void CvCapture_GStreamer::init() void CvCapture_GStreamer::init()
{ {
pipeline = NULL; pipeline = NULL;
frame = NULL; uridecodebin = NULL;
buffer = NULL; color = NULL;
buffer_caps = NULL; sink = NULL;
#if GST_VERSION_MAJOR > 0 #if GST_VERSION_MAJOR > 0
sample = NULL; sample = NULL;
info = new GstMapInfo; info = new GstMapInfo;
#endif #endif
buffer = NULL;
caps = NULL;
buffer_caps = NULL;
frame = NULL;
} }
/*! /*!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment