- Add null check for pixelBuffer in camera callback
- Return nil from capture session init on input/output failure
- Fix activate_feed return value and handle permission denied/restricted
- Deactivate camera feeds before removal
Add plane count check before accessing pixel buffer planes to handle
unexpected buffer formats gracefully. Also improve null checks to use
one-time logging and properly unlock the buffer before returning on
error.