mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
Fix bugs with hanging frames
This commit is contained in:
@@ -347,6 +347,10 @@ bool QueueReader::getInputVector(std::vector<Q*> &in_queues,
|
||||
cv::GRunArgs &in_constants,
|
||||
cv::GRunArgs &isl_inputs)
|
||||
{
|
||||
// NB: Need to release resources from the previous step, to fetch new ones.
|
||||
// On some systems it might be impossible to allocate new memory
|
||||
// until the old one is released.
|
||||
m_cmd.clear();
|
||||
// NOTE: in order to maintain the GRunArg's underlying object
|
||||
// lifetime, keep the whole cmd vector (of size == # of inputs)
|
||||
// in memory.
|
||||
|
||||
Reference in New Issue
Block a user