Skip to content

Commit

Permalink
Stream default to Stream::Null() when no default in function prototype
Browse files Browse the repository at this point in the history
this corrects bug opencv#16592 where a Stream is created at
each GpuMat::load(arr,stream) call

a correct solution would have been to add a default to GpuMat::load
but due to circular dependence between Stream and GpuMat, this is not possible
  • Loading branch information
r2d3 committed May 1, 2021
1 parent 1dacea3 commit 9b5d806
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/python/src2/gen2.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ class FormatStrings:
"double": ArgTypeInfo("double", FormatStrings.double, "0", True),
"c_string": ArgTypeInfo("char*", FormatStrings.string, '(char*)""'),
"string": ArgTypeInfo("std::string", FormatStrings.object, None, True),
"Stream": ArgTypeInfo("Stream", FormatStrings.object, 'Stream::Null()', True),
}


Expand Down

0 comments on commit 9b5d806

Please sign in to comment.