Commit 3312ddff authored by Guillaume BIENKOWSKI's avatar Guillaume BIENKOWSKI

Fix typo

parent 81e6bd55
...@@ -299,7 +299,7 @@ static void capture_queue_cleanup(void* p) { ...@@ -299,7 +299,7 @@ static void capture_queue_cleanup(void* p) {
error:&error]; error:&error];
AVCaptureSession *session = [(AVCaptureVideoPreviewLayer *)self.layer session]; AVCaptureSession *session = [(AVCaptureVideoPreviewLayer *)self.layer session];
if ( input && [session canAddInput] ){ if ( input && [session canAddInput:input] ){
[input retain]; // keep reference on an externally allocated object [input retain]; // keep reference on an externally allocated object
[session addInput:input]; [session addInput:input];
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment