mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
Rename video capture close to release
This commit is contained in:
parent
33976a951a
commit
de57ca8419
@ -33,7 +33,7 @@ void VideoCaptureWrap::Init(Local<Object> 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<VideoCaptureWrap>(info.This());
|
||||
|
||||
|
||||
@ -27,7 +27,6 @@ public:
|
||||
|
||||
static NAN_METHOD(GetFrameAt);
|
||||
|
||||
//close the stream
|
||||
static NAN_METHOD(Close);
|
||||
// release the stream
|
||||
static NAN_METHOD(Release);
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user