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
f6c87416
Commit
f6c87416
authored
Oct 27, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix audio thumbs not reloaded on profile fps changed
parent
d84dacb5
Pipeline
#38841
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/bin/projectclip.cpp
View file @
f6c87416
...
...
@@ -1384,6 +1384,9 @@ void ProjectClip::discardAudioThumb()
if
(
!
audioThumbPath
.
isEmpty
())
{
QFile
::
remove
(
audioThumbPath
);
}
// Clear audio cache
QString
key
=
QString
(
"%1:%2"
).
arg
(
m_binId
).
arg
(
st
);
pCore
->
audioThumbCache
.
insert
(
key
,
QByteArray
(
"-"
));
}
// Delete thumbnail
for
(
int
&
st
:
streams
)
{
...
...
@@ -1392,6 +1395,7 @@ void ProjectClip::discardAudioThumb()
QFile
::
remove
(
audioThumbPath
);
}
}
resetProducerProperty
(
QStringLiteral
(
"kdenlive:audio_max"
));
m_audioThumbCreated
=
false
;
refreshAudioInfo
();
...
...
@@ -1675,9 +1679,11 @@ const QVector <uint8_t> ProjectClip::audioFrameCache(int stream)
QString
key
=
QString
(
"%1:%2"
).
arg
(
m_binId
).
arg
(
stream
);
QByteArray
audioData
;
if
(
pCore
->
audioThumbCache
.
find
(
key
,
&
audioData
))
{
QDataStream
in
(
audioData
);
in
>>
audioLevels
;
return
audioLevels
;
if
(
audioData
!=
QByteArray
(
"-"
))
{
QDataStream
in
(
audioData
);
in
>>
audioLevels
;
return
audioLevels
;
}
}
// convert cached image
const
QString
cachePath
=
getAudioThumbPath
(
stream
);
...
...
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