Fixed cameras segfault (patch #1771)
This commit is contained in:
parent
7c33d65b59
commit
6d0c022347
@ -358,6 +358,8 @@ CvCapture* cvCreateCameraCapture_PvAPI( int index )
|
|||||||
{
|
{
|
||||||
CvCaptureCAM_PvAPI* capture = new CvCaptureCAM_PvAPI;
|
CvCaptureCAM_PvAPI* capture = new CvCaptureCAM_PvAPI;
|
||||||
|
|
||||||
|
memset(&capture->Camera, 0, sizeof(tCamera));
|
||||||
|
|
||||||
if ( capture->open( index ))
|
if ( capture->open( index ))
|
||||||
return capture;
|
return capture;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user