mirror of
https://github.com/opencv/opencv.git
synced 2025-07-24 05:39:22 +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;
|
- (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;
|
||||||
|
Loading…
Reference in New Issue
Block a user