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
78459841
Commit
78459841
authored
May 13, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix monitor audio thumbnails for single stream clips
parent
21cfd4d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/utils/thumbnailcache.cpp
View file @
78459841
...
...
@@ -290,7 +290,7 @@ QStringList ThumbnailCache::getAudioKey(const QString &binId, bool *ok)
*
ok
=
binClip
!=
nullptr
;
if
(
ok
)
{
QString
streams
=
binClip
->
getProducerProperty
(
QStringLiteral
(
"kdenlive:active_streams"
));
if
(
streams
.
isEmpty
())
{
if
(
streams
.
isEmpty
()
||
streams
==
QString
::
number
(
INT_MAX
)
)
{
// activate all audio streams
QList
<
int
>
streamIxes
=
binClip
->
audioStreams
().
keys
();
if
(
streamIxes
.
size
()
>
1
)
{
...
...
@@ -301,7 +301,7 @@ QStringList ThumbnailCache::getAudioKey(const QString &binId, bool *ok)
return
streamsList
;
}
}
if
(
streams
.
size
()
==
1
)
{
if
(
streams
.
size
()
<
2
)
{
int
audio
=
binClip
->
getProducerIntProperty
(
QStringLiteral
(
"audio_index"
));
if
(
audio
>
-
1
)
{
return
{
QString
(
"%1_%2.png"
).
arg
(
binClip
->
hash
()).
arg
(
audio
)};
...
...
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