Fixed an invalid reference to this for pausing a video stream.

This commit is contained in:
Jeremy Raadt 2013-03-12 23:34:58 -05:00
parent 11db468dcf
commit fd25b58e43

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