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

pull/13383/head
Alexander Reshetnikov 13 years ago
parent 3d42ebb329
commit 5042f5daa7
  1. 3
      modules/highgui/src/cap_pvapi.cpp

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

Loading…
Cancel
Save