Merge pull request #40 from jraadt/master

Fixed pausing a video stream.
This commit is contained in:
Peter Braden 2013-03-12 21:43:41 -07:00
commit e5be89c813

View File

@ -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)
} }