diff --git a/src/VideoCaptureWrap.cc b/src/VideoCaptureWrap.cc index 12b0afc..6ea7b13 100755 --- a/src/VideoCaptureWrap.cc +++ b/src/VideoCaptureWrap.cc @@ -33,7 +33,7 @@ void VideoCaptureWrap::Init(Local target) { Nan::SetPrototypeMethod(ctor, "setHeight", SetHeight); Nan::SetPrototypeMethod(ctor, "setPosition", SetPosition); Nan::SetPrototypeMethod(ctor, "getFrameAt", GetFrameAt); - Nan::SetPrototypeMethod(ctor, "nFrames", NumFrames); + Nan::SetPrototypeMethod(ctor, "getFrameCount", GetFrameCount); Nan::SetPrototypeMethod(ctor, "close", Close); Nan::SetPrototypeMethod(ctor, "ReadSync", ReadSync); Nan::SetPrototypeMethod(ctor, "grab", Grab); @@ -95,7 +95,7 @@ NAN_METHOD(VideoCaptureWrap::SetWidth) { return; } -NAN_METHOD(VideoCaptureWrap::NumFrames) { +NAN_METHOD(VideoCaptureWrap::GetFrameCount) { Nan::HandleScope scope; VideoCaptureWrap *v = Nan::ObjectWrap::Unwrap(info.This()); diff --git a/src/VideoCaptureWrap.h b/src/VideoCaptureWrap.h index 1fbb3bf..bf28790 100755 --- a/src/VideoCaptureWrap.h +++ b/src/VideoCaptureWrap.h @@ -23,7 +23,7 @@ public: // to set frame position static NAN_METHOD(SetPosition); - static NAN_METHOD(NumFrames); + static NAN_METHOD(GetFrameCount); static NAN_METHOD(GetFrameAt);