Skip to content

Commit 0c11c21

Browse files
authored
Fix SplitChannelsAsync
Whenever I called splitChannelsAsync my application would crash silently. I have not tested this change, but I suspect it will fix the problem.
1 parent c92e642 commit 0c11c21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cc/core/Mat.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ NAN_MODULE_INIT(Mat::Init) {
8080
Nan::SetPrototypeMethod(ctor, "copyMakeBorder", CopyMakeBorder);
8181
Nan::SetPrototypeMethod(ctor, "copyMakeBorderAsync", CopyMakeBorderAsync);
8282
Nan::SetPrototypeMethod(ctor, "splitChannels", Split);
83-
Nan::SetPrototypeMethod(ctor, "splitChannelsAsync", Split);
83+
Nan::SetPrototypeMethod(ctor, "splitChannelsAsync", SplitAsync);
8484

8585
#if CV_VERSION_GREATER_EQUAL(3, 2, 0)
8686
Nan::SetPrototypeMethod(ctor, "rotate", Rotate);

0 commit comments

Comments
 (0)