mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Initialize all pointers of CvCapture_GStreamer correctly
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user