mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
Fixed compilation error under Linux (memset for pvapi was moved to constructor)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user