Skip to content

Commit de57ca8

Browse files
committed
Rename video capture close to release
1 parent 33976a9 commit de57ca8

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/VideoCaptureWrap.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void VideoCaptureWrap::Init(Local<Object> target) {
3333
Nan::SetPrototypeMethod(ctor, "setPosition", SetPosition);
3434
Nan::SetPrototypeMethod(ctor, "getFrameAt", GetFrameAt);
3535
Nan::SetPrototypeMethod(ctor, "getFrameCount", GetFrameCount);
36-
Nan::SetPrototypeMethod(ctor, "close", Close);
36+
Nan::SetPrototypeMethod(ctor, "release", Release);
3737
Nan::SetPrototypeMethod(ctor, "ReadSync", ReadSync);
3838
Nan::SetPrototypeMethod(ctor, "grab", Grab);
3939
Nan::SetPrototypeMethod(ctor, "retrieve", Retrieve);
@@ -145,7 +145,7 @@ NAN_METHOD(VideoCaptureWrap::GetFrameAt) {
145145
return;
146146
}
147147

148-
NAN_METHOD(VideoCaptureWrap::Close) {
148+
NAN_METHOD(VideoCaptureWrap::Release) {
149149
Nan::HandleScope scope;
150150
VideoCaptureWrap *v = Nan::ObjectWrap::Unwrap<VideoCaptureWrap>(info.This());
151151

src/VideoCaptureWrap.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ class VideoCaptureWrap: public Nan::ObjectWrap {
2727

2828
static NAN_METHOD(GetFrameAt);
2929

30-
//close the stream
31-
static NAN_METHOD(Close);
30+
// release the stream
31+
static NAN_METHOD(Release);
3232
};
33-

0 commit comments

Comments
 (0)