Fix cannot switch audio target with 1 stream clips

parent c6e3ff10
Pipeline #20618 passed with stage
in 9 minutes and 28 seconds
......@@ -107,7 +107,7 @@ Rectangle {
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.margins: 1
MouseArea {
id: targetArea
anchors.fill: parent
......
......@@ -1170,6 +1170,10 @@ void TimelineController::switchAudioTarget(int trackId)
m_model->m_audioTarget.remove(trackId);
} else {
//TODO: use track description
if (m_model->m_binAudioTargets.count() == 1) {
// Only one audio stream, remove previous and switch
m_model->m_audioTarget.clear();
}
int ix = getFirstUnassignedStream();
if (ix > -1) {
m_model->m_audioTarget.insert(trackId, ix);
......
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