Commit 5ce88630 authored by Yann Diorcet's avatar Yann Diorcet
Browse files

Reformat ios/osx code

Fix ios issue at stop
parent e613ba00
......@@ -254,13 +254,15 @@
AVCaptureSession *session = [(AVCaptureVideoPreviewLayer *)self.layer session];
[session addInput:input];
[session addOutput:output ];
[session addOutput:output];
}
- (void)dealloc {
@synchronized(self) {
AVCaptureSession *session = [(AVCaptureVideoPreviewLayer *)self.layer session];
[session removeInput:input];
[session removeOutput:output];
[output setSampleBufferDelegate:nil queue:NULL];
[output release];
[parentView release];
......@@ -269,6 +271,7 @@
}
ms_mutex_destroy(&mutex);
[super dealloc];
}
}
+ (Class)layerClass {
......
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