Detect if ofVideoGrabber is busy


I’m running an OF app alongside a python application, each of which are supposed to grab one of two webcams on the machine. The two sometimes disagree on the order of system video devices and try to access the same camera.

I’d like for the OF app to check which of the two cameras is already busy and which can be connected to. ofVideoDevice::bAvailable always returns true regardless if the device is occupied in the python app, both Linux and Mac. ofVideoGrabber::setup also returns true. Is this a bug or not the correct use? Is there a reliable way to determine which camera is free?