NaoCamera::~NaoCamera() { // Stop the thread topThreadRunning = false; bottomThreadRunning = false; pthread_join(topCameraThread, NULL); pthread_join(bottomCameraThread, NULL); pthread_mutex_lock(&freshImageMutex); pthread_cond_signal(&freshImage); pthread_mutex_unlock(&freshImageMutex); pthread_cond_destroy(&freshImage); pthread_mutex_destroy(&freshImageMutex); deinitializeCamera(topCameraFd, &buffersTop, numBuffersTop); deinitializeCamera(bottomCameraFd, &buffersBottom, numBuffersBottom); }
ofxDShow::~ofxDShow() { deinitializeCamera(); }
ofxffmv::~ofxffmv() { deinitializeCamera(); }
ofxPS3::~ofxPS3() { deinitializeCamera(); }
ofxIPImage::~ofxIPImage() { deinitializeCamera(); }