mirror of
https://github.com/opencv/opencv.git
synced 2024-12-18 03:18:01 +08:00
Initialize all pointers of CvCapture_GStreamer correctly
This commit is contained in:
parent
da1ac35930
commit
f8442da945
@ -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…
Reference in New Issue
Block a user