At the moment, if you pull out the capture device used by ofVideoGrabber there is no kind of error returned. Do you know any way we could do this?
Also I was thinking about ways of detecting if your camera goes down/powers off. So in my case I am using usb capture devices, with security cameras plugged in via bnc cable.
If you unplug the camera (but usb capture device remains) then all that happens is all the pixels turn a single blue colour (or black, depending on the device). Perhaps we could this as a way of telling whether any signal is coming in?
Instead of making this a local boolean, I have made it as part of the class by putting it under the protected variables. Then under public in videograbber.h added…
bool isDeviceOk(){ return bOk; };
Now I can check from my code that the video device is enabled.
Maybe something to have in future videoGrabber changes?