Commit 5042f5da authored by Alexander Reshetnikov's avatar Alexander Reshetnikov

Fixed compilation error under Linux (memset for pvapi was moved to constructor)

parent 3d42ebb3
......@@ -109,6 +109,7 @@ protected:
CvCaptureCAM_PvAPI::CvCaptureCAM_PvAPI()
{
monocrome=false;
memset(&this->Camera, 0, sizeof(this->tCamera));
}
void CvCaptureCAM_PvAPI::Sleep(unsigned int time)
{
......@@ -358,8 +359,6 @@ CvCapture* cvCreateCameraCapture_PvAPI( int index )
{
CvCaptureCAM_PvAPI* capture = new CvCaptureCAM_PvAPI;
memset(&capture->Camera, 0, sizeof(tCamera));
if ( capture->open( index ))
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