Just posted this in gfx forum, but wasn't sure if it was better placed in camera section...
I'm writing some code to try and access the camera component. I've taken a fair bit from various sources and it almost works. My current and final issue is that open mx seems to lock up (normally inside OMX_GetState, but I think it happens at other points), almost consistently on my 3rd run of the application. Once this has happened the program can't be shutdown (even calling abort from the signal handler), and the system won't reboot even if I type sudo reboot in a different console.
The only clue I can think of is that on shutting down OMX in the prior runs, I hit this error in shutting down the camera component:
OMX error: Failed to switch state of the camera component to loaded: 0x80001000 insufficient resource
It could be irrelevant, but I could imagine if the camera system hadn't properly shutdown it would cause odd behaviour on future runs of the application when it started trying to use OMX again. Problem is, I'm totally stuck diagnosing either side of the problem.
Anyone any thoughts? tips? Any help at all?
Code all here if you fancy a look: http://www.cheerfulprogrammer.com/downloads/gpucam.zip