mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 12:40:05 +08:00
Fixed compilation error under Linux (memset for pvapi was moved to constructor)
This commit is contained in:
parent
3d42ebb329
commit
5042f5daa7
@ -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…
Reference in New Issue
Block a user