Fix audio stream target name for stream > 9

parent a57123e6
Pipeline #20631 passed with stage
in 9 minutes and 24 seconds
......@@ -103,7 +103,7 @@ Rectangle {
height: trackHeadRoot.height
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
visible: trackHeadRoot.isAudio ? timeline.hasAudioTarget > 0 : timeline.hasVideoTarget
visible: trackHeadRoot.isAudio ? timeline.hasAudioTarget > 0 : timeline.hasVideoTarget
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.margins: 1
......
......@@ -2533,7 +2533,7 @@ const QString TimelineController::audioTargetName(int tid) const
int streamIndex = m_model->m_audioTarget.value(tid);
if (m_model->m_binAudioTargets.contains(streamIndex)) {
QString targetName = m_model->m_binAudioTargets.value(streamIndex);
return targetName.isEmpty() ? QChar('x') : targetName.at(0);
return targetName.isEmpty() ? QChar('x') : targetName.section(QLatin1Char('|'), 0, 0);
} else {
qDebug()<<"STREAM INDEX NOT IN TARGET : "<<streamIndex<<" = "<<m_model->m_binAudioTargets;
}
......
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