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

Loading…
Cancel
Save