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

Commit

Permalink
Merge remote-tracking branch 'phonegap/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
timwindsor committed Sep 16, 2015
2 parents b8f2fa5 + 74f33d5 commit 28174b1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "phonegap-plugin-barcodescanner",
"version": "4.0.0",
"version": "4.0.2",
"description": "You can use the BarcodeScanner plugin to scan different types of barcodes (using the device's camera) and get the metadata encoded in them for processing within your application.",
"cordova": {
"id": "phonegap-plugin-barcodescanner",
Expand Down
3 changes: 2 additions & 1 deletion plugin.xml
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?><plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:rim="http://www.blackberry.com/ns/widgets"
id="phonegap-plugin-barcodescanner"
version="3.1.2">
version="4.0.2">

<name>BarcodeScanner</name>
<description>You can use the BarcodeScanner plugin to scan different types of barcodes (using the device's camera) and get the metadata encoded in them for processing within your application.</description>
Expand Down
6 changes: 3 additions & 3 deletions src/ios/CDVBarcodeScanner.mm
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 28174b1

Please sign in to comment.