Set AVCaptureSessionPresetHigh before capturing photo

My previous commit for this set it in one place but I forgot the other
This commit is contained in:
Thomas Parslow 2018-05-03 18:52:43 +01:00
parent 351e0bb89e
commit d843de4eb6

View File

@ -456,6 +456,8 @@ static NSDictionary *defaultFaceDetectorOptions = nil;
return;
}
self.session.sessionPreset = AVCaptureSessionPresetPhoto;
AVCaptureStillImageOutput *stillImageOutput = [[AVCaptureStillImageOutput alloc] init];
if ([self.session canAddOutput:stillImageOutput]) {
stillImageOutput.outputSettings = @{AVVideoCodecKey : AVVideoCodecJPEG};