Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
71ffcac6
Commit
71ffcac6
authored
May 20, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix audio stream target name for stream > 9
parent
a57123e6
Pipeline
#20631
passed with stage
in 9 minutes and 24 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/view/qml/TrackHead.qml
View file @
71ffcac6
...
...
@@ -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
...
...
src/timeline2/view/timelinecontroller.cpp
View file @
71ffcac6
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment