From de57ca84196a3016a196c7f0590254a88926f930 Mon Sep 17 00:00:00 2001 From: Dan Schultzer Date: Wed, 21 Sep 2016 01:47:10 -0700 Subject: [PATCH] Rename video capture close to release --- src/VideoCaptureWrap.cc | 4 ++-- src/VideoCaptureWrap.h | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) 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); }; -