Is there an easy way of detecting whether the camera is running while using GPUImage?
Currently to start the camera I run:
[_camera startCameraCapture];
and
[_camera stopCameraCapture];
to stop it.
I have found though that if I run startCameraCapture a few times in a row then I get memory problems.
This means that either I need to structure my app with set procedures so a start can only be followed with a stop or I need to determine whether the camera is running and then only stop it if it is running (and vice versa)
Currently I am using
[_camera pauseCameraCapture];
[_camera resumeCameraCapture];
But these are not ideal as when we build up the complexity there will be too many permutations to make sure that a resume always follows a pause.
Any help would be very appreciated