Skip to content

Commit

Permalink
Merge pull request #432 from neacao/master
Browse files Browse the repository at this point in the history
Fixed crash #431
  • Loading branch information
benjohnde authored Sep 26, 2018
2 parents addd615 + a73a02d commit ab2f8cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ZXingObjC/client/ZXCapture.m
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ - (void)replaceInput {
}

if (self.input) {
if (self.sessionPreset) {
if (!self.sessionPreset) {
self.sessionPreset = AVCaptureSessionPreset1280x720;
}
self.session.sessionPreset = self.sessionPreset;
Expand Down

0 comments on commit ab2f8cb

Please sign in to comment.