Fix crash on double-stop of CvVideoCamera

This commit is contained in:
David Wolever 2016-08-02 17:52:02 -04:00
parent fc742da6e3
commit 3d19de2b58
No known key found for this signature in database
GPG Key ID: EACBB7914091712B

View File

@ -100,6 +100,10 @@ static CGFloat DegreesToRadians(CGFloat degrees) {return degrees * M_PI / 180;}
- (void)start; - (void)start;
{ {
if (self.running == YES) {
return;
}
recordingCountDown = 10; recordingCountDown = 10;
[super start]; [super start];
@ -118,6 +122,10 @@ static CGFloat DegreesToRadians(CGFloat degrees) {return degrees * M_PI / 180;}
- (void)stop; - (void)stop;
{ {
if (self.running == NO) {
return;
}
[super stop]; [super stop];
self.videoDataOutput = nil; self.videoDataOutput = nil;