Initialize all pointers of CvCapture_GStreamer correctly

pull/2989/head
Sander Mathijs van Veen 10 years ago
parent da1ac35930
commit f8442da945
  1. 10
      modules/videoio/src/cap_gstreamer.cpp

@ -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;
}
/*!

Loading…
Cancel
Save