Commit 21cfd4d7 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle

Fix crash when deselecting all audio streams

parent ca7fefe9
Pipeline #20119 passed with stage
in 9 minutes and 17 seconds
......@@ -1551,8 +1551,10 @@ void Monitor::reloadActiveStream()
if (activeStreams.size() > 1) {
m_glMonitor->getControllerProxy()->setAudioStream(i18np("%1 audio stream", "%1 audio streams", activeStreams.size()));
// TODO: Mix audio channels
} else {
} else if (!activeStreams.isEmpty()) {
m_glMonitor->getControllerProxy()->setAudioStream(m_controller->activeStreams().first());
} else {
m_glMonitor->getControllerProxy()->setAudioStream(QString());
}
prepareAudioThumb();
for (auto ac : acts) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment