mirror of
https://github.com/opencv/opencv.git
synced 2025-06-17 15:20:51 +08:00
Merge pull request #7571 from panxiaochun:CvVideoCamera_stop
This commit is contained in:
commit
6c12533160
@ -203,11 +203,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
[self.captureSession stopRunning];
|
[self.captureSession stopRunning];
|
||||||
self.captureSession = nil;
|
[captureSession release];
|
||||||
}
|
}
|
||||||
|
|
||||||
self.captureVideoPreviewLayer = nil;
|
[captureVideoPreviewLayer release];
|
||||||
self.videoCaptureConnection = nil;
|
[videoCaptureConnection release];
|
||||||
captureSessionLoaded = NO;
|
captureSessionLoaded = NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -129,9 +129,10 @@ static CGFloat DegreesToRadians(CGFloat degrees) {return degrees * M_PI / 180;}
|
|||||||
|
|
||||||
- (void)stop;
|
- (void)stop;
|
||||||
{
|
{
|
||||||
|
if (self.running == YES) {
|
||||||
[super stop];
|
[super stop];
|
||||||
|
|
||||||
self.videoDataOutput = nil;
|
[videoDataOutput release];
|
||||||
if (videoDataOutputQueue) {
|
if (videoDataOutputQueue) {
|
||||||
dispatch_release(videoDataOutputQueue);
|
dispatch_release(videoDataOutputQueue);
|
||||||
}
|
}
|
||||||
@ -144,11 +145,11 @@ static CGFloat DegreesToRadians(CGFloat degrees) {return degrees * M_PI / 180;}
|
|||||||
} else {
|
} else {
|
||||||
NSLog(@"[Camera] Recording Error: asset writer status is not writing");
|
NSLog(@"[Camera] Recording Error: asset writer status is not writing");
|
||||||
}
|
}
|
||||||
self.recordAssetWriter = nil;
|
[recordAssetWriter release];
|
||||||
}
|
}
|
||||||
|
|
||||||
self.recordAssetWriterInput = nil;
|
[recordAssetWriterInput release];
|
||||||
self.recordPixelBufferAdaptor = nil;
|
[recordPixelBufferAdaptor release];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self.customPreviewLayer) {
|
if (self.customPreviewLayer) {
|
||||||
@ -156,6 +157,7 @@ static CGFloat DegreesToRadians(CGFloat degrees) {return degrees * M_PI / 180;}
|
|||||||
self.customPreviewLayer = nil;
|
self.customPreviewLayer = nil;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// TODO fix
|
// TODO fix
|
||||||
- (void)adjustLayoutToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;
|
- (void)adjustLayoutToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation;
|
||||||
|
Loading…
Reference in New Issue
Block a user