Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit 1f44ef2

Browse files
authored
Merge pull request #625 from ai0376/master
fix break loop
2 parents 1d7f4f9 + abbe86f commit 1f44ef2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/agent/video/videoMixer/VideoMixer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ void VideoMixer::closeAll()
216216
auto it = m_inputs.begin();
217217
while (it != m_inputs.end()) {
218218
m_frameMixer->removeInput(*it);
219+
it++;
219220
}
220221
m_inputs.clear();
221222

@@ -225,6 +226,7 @@ void VideoMixer::closeAll()
225226
while (it != m_outputs.end()) {
226227
int32_t index = it->second;
227228
m_frameMixer->removeOutput(index);
229+
it++;
228230
}
229231
boost::upgrade_to_unique_lock<boost::shared_mutex> outputLock1(outputLock);
230232
m_outputs.clear();

0 commit comments

Comments
 (0)