mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
Merge pull request #40 from jraadt/master
Fixed pausing a video stream.
This commit is contained in:
commit
e5be89c813
@ -130,7 +130,7 @@ videostream.read = function(){
|
|||||||
var frame = function(){
|
var frame = function(){
|
||||||
self.video.read(function(mat){
|
self.video.read(function(mat){
|
||||||
self.emit('data', mat)
|
self.emit('data', mat)
|
||||||
if (!this.paused){
|
if (!self.paused){
|
||||||
process.nextTick(frame)
|
process.nextTick(frame)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user