mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 21:20:18 +08:00
Fix crash on double-stop of CvVideoCamera
This commit is contained in:
parent
fc742da6e3
commit
3d19de2b58
@ -100,6 +100,10 @@ static CGFloat DegreesToRadians(CGFloat degrees) {return degrees * M_PI / 180;}
|
||||
|
||||
- (void)start;
|
||||
{
|
||||
if (self.running == YES) {
|
||||
return;
|
||||
}
|
||||
|
||||
recordingCountDown = 10;
|
||||
[super start];
|
||||
|
||||
@ -118,6 +122,10 @@ static CGFloat DegreesToRadians(CGFloat degrees) {return degrees * M_PI / 180;}
|
||||
|
||||
- (void)stop;
|
||||
{
|
||||
if (self.running == NO) {
|
||||
return;
|
||||
}
|
||||
|
||||
[super stop];
|
||||
|
||||
self.videoDataOutput = nil;
|
||||
|
Loading…
Reference in New Issue
Block a user