1
0
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:
Alexander Reshetnikov
2012-04-12 12:11:43 +00:00
parent 7c33d65b59
commit 6d0c022347
+2
View File
@@ -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;