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
e05c154a
Commit
e05c154a
authored
Dec 21, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix crash when all audio streams of a clip were disabled.
BUG: 429997
parent
7316200d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/monitor/monitor.cpp
View file @
e05c154a
...
...
@@ -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
())
{
...
...
Write
Preview
Supports
Markdown
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