face-landmarking-ios
face-landmarking-ios copied to clipboard
Ignoring enqueueSampleBuffer
Hi! During the restart of the application, the picture from the camera does not appear and writes a message:
Ignoring enqueueSampleBuffer: because status is "failed"
Are there any solutions?
I find a solution: http://stackoverflow.com/questions/43687169/ios-ignoring-enqueuesamplebuffer-because-status-is-failed
// MARK: AVCaptureVideoDataOutputSampleBufferDelegate
if layer.status == .failed { layer.flush() } layer.enqueue(sampleBuffer)