mirror of
https://github.com/jech/galene.git
synced 2024-11-23 00:55:58 +01:00
Use clearInterval instead of clearTimer.
This commit is contained in:
parent
2eb61d877f
commit
82827453f0
1 changed files with 2 additions and 2 deletions
|
@ -880,7 +880,7 @@ Filter.prototype.draw = function() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if(frameRate && frameRate != this.frameRate) {
|
if(frameRate && frameRate != this.frameRate) {
|
||||||
clearTimeout(this.timer);
|
clearInterval(this.timer);
|
||||||
this.timer = setInterval(() => this.draw(), 1000 / this.frameRate);
|
this.timer = setInterval(() => this.draw(), 1000 / this.frameRate);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -906,7 +906,7 @@ Filter.prototype.stop = function() {
|
||||||
if(!this.timer)
|
if(!this.timer)
|
||||||
return;
|
return;
|
||||||
this.captureStream.getTracks()[0].stop();
|
this.captureStream.getTracks()[0].stop();
|
||||||
clearTimeout(this.timer);
|
clearInterval(this.timer);
|
||||||
this.timer = null;
|
this.timer = null;
|
||||||
if(this.definition.cleanup)
|
if(this.definition.cleanup)
|
||||||
this.definition.cleanup.call(this);
|
this.definition.cleanup.call(this);
|
||||||
|
|
Loading…
Reference in a new issue