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

Commit 8eabe58

Browse files
author
raomj
committed
fix break loop
1 parent 1d7f4f9 commit 8eabe58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/agent/video/videoMixer/VideoMixer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ void VideoMixer::closeAll()
215215

216216
auto it = m_inputs.begin();
217217
while (it != m_inputs.end()) {
218-
m_frameMixer->removeInput(*it);
218+
m_frameMixer->removeInput(*it++);
219219
}
220220
m_inputs.clear();
221221

@@ -225,6 +225,7 @@ void VideoMixer::closeAll()
225225
while (it != m_outputs.end()) {
226226
int32_t index = it->second;
227227
m_frameMixer->removeOutput(index);
228+
it++;
228229
}
229230
boost::upgrade_to_unique_lock<boost::shared_mutex> outputLock1(outputLock);
230231
m_outputs.clear();

0 commit comments

Comments
 (0)