From f8442da945361ef229e0ad503fb573c5968ef772 Mon Sep 17 00:00:00 2001 From: Sander Mathijs van Veen Date: Mon, 21 Jul 2014 10:12:25 +0200 Subject: [PATCH] Initialize all pointers of CvCapture_GStreamer correctly --- modules/videoio/src/cap_gstreamer.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/videoio/src/cap_gstreamer.cpp b/modules/videoio/src/cap_gstreamer.cpp index 00562aa41c..c5a78a0273 100644 --- a/modules/videoio/src/cap_gstreamer.cpp +++ b/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; } /*!