Permalink
Browse files

Merge pull request #40 from jraadt/master

Fixed pausing a video stream.
  • Loading branch information...
2 parents 11db468 + fd25b58 commit e5be89c8138b162e35cd6d10b98bfcccb09bab73 @peterbraden committed Mar 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/opencv.js
View
2 lib/opencv.js
@@ -130,7 +130,7 @@ videostream.read = function(){
var frame = function(){
self.video.read(function(mat){
self.emit('data', mat)
- if (!this.paused){
+ if (!self.paused){
process.nextTick(frame)
}

0 comments on commit e5be89c

Please sign in to comment.