Commit 6d0c0223 authored by Alexander Reshetnikov's avatar Alexander Reshetnikov

Fixed cameras segfault (patch #1771)

parent 7c33d65b
...@@ -358,6 +358,8 @@ CvCapture* cvCreateCameraCapture_PvAPI( int index ) ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment