Issue 903 logic error for setting torch

git-svn-id: https://zxing.googlecode.com/svn/trunk@1853 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2011-07-12 10:11:56 +00:00
parent 245d432cd0
commit 3b9dccf95f

View file

@ -492,7 +492,7 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
if ( status ) {
[device setTorchMode:AVCaptureTorchModeOn];
} else {
[device setTorchMode:AVCaptureTorchModeOn];
[device setTorchMode:AVCaptureTorchModeOff];
}
}
[device unlockForConfiguration];