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

This commit is contained in:
Alexander Reshetnikov 2012-04-12 13:35:48 +00:00
parent 3d42ebb329
commit 5042f5daa7

View File

@ -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;