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
a57123e6
Commit
a57123e6
authored
May 20, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix cannot switch audio target with 1 stream clips
parent
c6e3ff10
Pipeline
#20618
passed with stage
in 9 minutes and 28 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/view/qml/TrackHead.qml
View file @
a57123e6
...
...
@@ -107,7 +107,7 @@ Rectangle {
anchors.top
:
parent
.
top
anchors.bottom
:
parent
.
bottom
anchors.margins
:
1
MouseArea
{
id
:
targetArea
anchors.fill
:
parent
...
...
src/timeline2/view/timelinecontroller.cpp
View file @
a57123e6
...
...
@@ -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
);
...
...
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