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

Commit 63985c6

Browse files
authored
Fix audio ranker failure during switching (#786)
1 parent 68c4e56 commit 63985c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/core/owt_base/selector/AudioRanker.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,9 @@ void AudioRanker::AudioLevelProcessor::setLinkedOutput(FrameDestination* output)
287287
removeAudioDestination(m_linkedOutput);
288288
}
289289
m_linkedOutput = output;
290-
addAudioDestination(m_linkedOutput);
290+
if (m_linkedOutput) {
291+
addAudioDestination(m_linkedOutput);
292+
}
291293
deliverOwnerData();
292294
}
293295

0 commit comments

Comments
 (0)