diff --git a/src/VideoCaptureWrap.cc b/src/VideoCaptureWrap.cc index 2db7a35c..5afbf659 100755 --- a/src/VideoCaptureWrap.cc +++ b/src/VideoCaptureWrap.cc @@ -33,7 +33,7 @@ void VideoCaptureWrap::Init(Local target) { Nan::SetPrototypeMethod(ctor, "setPosition", SetPosition); Nan::SetPrototypeMethod(ctor, "getFrameAt", GetFrameAt); Nan::SetPrototypeMethod(ctor, "getFrameCount", GetFrameCount); - Nan::SetPrototypeMethod(ctor, "close", Close); + Nan::SetPrototypeMethod(ctor, "release", Release); Nan::SetPrototypeMethod(ctor, "ReadSync", ReadSync); Nan::SetPrototypeMethod(ctor, "grab", Grab); Nan::SetPrototypeMethod(ctor, "retrieve", Retrieve); @@ -145,7 +145,7 @@ NAN_METHOD(VideoCaptureWrap::GetFrameAt) { return; } -NAN_METHOD(VideoCaptureWrap::Close) { +NAN_METHOD(VideoCaptureWrap::Release) { Nan::HandleScope scope; VideoCaptureWrap *v = Nan::ObjectWrap::Unwrap(info.This()); diff --git a/src/VideoCaptureWrap.h b/src/VideoCaptureWrap.h index bf28790b..cb01a725 100755 --- a/src/VideoCaptureWrap.h +++ b/src/VideoCaptureWrap.h @@ -27,7 +27,6 @@ class VideoCaptureWrap: public Nan::ObjectWrap { static NAN_METHOD(GetFrameAt); - //close the stream - static NAN_METHOD(Close); + // release the stream + static NAN_METHOD(Release); }; -