This commit is contained in:
Maria Dimashova 2012-07-11 08:41:09 +00:00
parent e68b26e71f
commit bc3fb347a3

View File

@ -116,9 +116,12 @@ error:
void CvCaptureCAM_XIMEA::close()
{
xiStopAcquisition(hmv);
xiCloseDevice(hmv);
hmv = NULL;
if(hmv)
{
xiStopAcquisition(hmv);
xiCloseDevice(hmv);
hmv = NULL;
}
}
/**********************************************************************************/