mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Fixed cameras segfault (patch #1771)
This commit is contained in:
@@ -358,6 +358,8 @@ CvCapture* cvCreateCameraCapture_PvAPI( int index )
|
||||
{
|
||||
CvCaptureCAM_PvAPI* capture = new CvCaptureCAM_PvAPI;
|
||||
|
||||
memset(&capture->Camera, 0, sizeof(tCamera));
|
||||
|
||||
if ( capture->open( index ))
|
||||
return capture;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user