Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
Merge pull request #66 from olimortimer/patch-1
Browse files Browse the repository at this point in the history
Fixed iPhone / iPod scanning issue
  • Loading branch information
stevengill committed Aug 28, 2015
2 parents 001a1be + c92bc8a commit 346472f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ios/CDVBarcodeScanner.mm
Original file line number Diff line number Diff line change
Expand Up @@ -433,11 +433,11 @@ - (NSString*)setUpCaptureSession {

[output setSampleBufferDelegate:self queue:dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0)];

if (![captureSession canSetSessionPreset:AVCaptureSessionPresetMedium]) {
return @"unable to preset medium quality video capture";
if (![captureSession canSetSessionPreset:AVCaptureSessionPresetHigh]) {
return @"unable to preset high quality video capture";
}

captureSession.sessionPreset = AVCaptureSessionPresetMedium;
captureSession.sessionPreset = AVCaptureSessionPresetHigh;

if ([captureSession canAddInput:input]) {
[captureSession addInput:input];
Expand Down

0 comments on commit 346472f

Please sign in to comment.