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
f4a1cdf6
Commit
f4a1cdf6
authored
Jul 31, 2020
by
Jean-Baptiste Mardelle
Browse files
Don't cache empty audio data (fixes missing audio thumbs on video clips)
parent
9ba6eaa9
Pipeline
#28985
passed with stage
in 41 minutes and 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/bin/projectclip.cpp
View file @
f4a1cdf6
...
...
@@ -1654,12 +1654,11 @@ const QVector <uint8_t> ProjectClip::audioFrameCache(int stream)
audioLevels
<<
(
uint8_t
)
qBlue
(
p
);
audioLevels
<<
(
uint8_t
)
qAlpha
(
p
);
}
// populate vector
QDataStream
st
(
&
audioData
,
QIODevice
::
WriteOnly
);
st
<<
audioLevels
;
pCore
->
audioThumbCache
.
insert
(
key
,
audioData
);
}
// populate vector
QDataStream
st
(
&
audioData
,
QIODevice
::
WriteOnly
);
st
<<
audioLevels
;
pCore
->
audioThumbCache
.
insert
(
key
,
audioData
);
qDebug
()
<<
"=== AUDIO THUMBS TOTAL : "
<<
pCore
->
audioThumbCache
.
totalSize
()
<<
" // "
<<
pCore
->
audioThumbCache
.
freeSize
();
return
audioLevels
;
}
...
...
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