Commit e05c154a authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix crash when all audio streams of a clip were disabled.

BUG: 429997
parent 7316200d
......@@ -1525,8 +1525,8 @@ void Monitor::slotOpenClip(const std::shared_ptr<ProjectClip> &controller, int i
if (activeStreams.size() > 1) {
m_glMonitor->getControllerProxy()->setAudioStream(i18np("%1 audio stream", "%1 audio streams", activeStreams.size()));
// TODO: Mix audio channels
} else {
m_glMonitor->getControllerProxy()->setAudioStream(m_controller->activeStreams().first());
} else if (!activeStreams.isEmpty()) {
m_glMonitor->getControllerProxy()->setAudioStream(activeStreams.first());
}
QAction *ac;
while (i.hasNext()) {
......
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