Skip to content

Commit

Permalink
Fix SplitChannelsAsync
Browse files Browse the repository at this point in the history
Whenever I called splitChannelsAsync my application would crash silently.
I have not tested this change, but I suspect it will fix the problem.
  • Loading branch information
EmilRais authored May 14, 2020
1 parent c92e642 commit 0c11c21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cc/core/Mat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ NAN_MODULE_INIT(Mat::Init) {
Nan::SetPrototypeMethod(ctor, "copyMakeBorder", CopyMakeBorder);
Nan::SetPrototypeMethod(ctor, "copyMakeBorderAsync", CopyMakeBorderAsync);
Nan::SetPrototypeMethod(ctor, "splitChannels", Split);
Nan::SetPrototypeMethod(ctor, "splitChannelsAsync", Split);
Nan::SetPrototypeMethod(ctor, "splitChannelsAsync", SplitAsync);

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

0 comments on commit 0c11c21

Please sign in to comment.