I have an app where I use to keep frames (CVPixelBuffer) coming from the iOS camera. I use the delegate method
-(void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer (CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection
.
Since recent updates of iOS no more frames arrive through the delegate method if the previous once are not released. Now CVPixelBufferUnlockBaseAddress
and CVPixelBufferRelease
need to be called on the stored frames before new ones come.
Any ideas of why's that? I would think there was some hardware optimization but I could not find details.