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
c1e7f6a0
Commit
c1e7f6a0
authored
Jan 12, 2022
by
Jean-Baptiste Mardelle
Browse files
Don't attempt to create audio thumbs if thumbs are disabled.
BUGS: 448304
parent
d0a5fb9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/projectclip.cpp
View file @
c1e7f6a0
...
...
@@ -116,7 +116,7 @@ ProjectClip::ProjectClip(const QString &id, const QIcon &thumb, const std::share
// Generate clip thumbnail
ClipLoadTask
::
start
({
ObjectType
::
BinClip
,
m_binId
.
toInt
()},
QDomElement
(),
true
,
-
1
,
-
1
,
this
);
// Generate audio thumbnail
if
(
m_clipType
==
ClipType
::
AV
||
m_clipType
==
ClipType
::
Audio
||
m_clipType
==
ClipType
::
Playlist
||
m_clipType
==
ClipType
::
Unknown
)
{
if
(
KdenliveSettings
::
audiothumbnails
()
&&
(
m_clipType
==
ClipType
::
AV
||
m_clipType
==
ClipType
::
Audio
||
m_clipType
==
ClipType
::
Playlist
||
m_clipType
==
ClipType
::
Unknown
)
)
{
AudioLevelsTask
::
start
({
ObjectType
::
BinClip
,
m_binId
.
toInt
()},
this
,
false
);
}
}
...
...
@@ -536,7 +536,7 @@ bool ProjectClip::setProducer(std::shared_ptr<Mlt::Producer> producer)
getFileHash
();
// set parent again (some info need to be stored in producer)
updateParent
(
parentItem
().
lock
());
if
(
m_clipType
==
ClipType
::
AV
||
m_clipType
==
ClipType
::
Audio
||
m_clipType
==
ClipType
::
Playlist
||
m_clipType
==
ClipType
::
Unknown
)
{
if
(
KdenliveSettings
::
audiothumbnails
()
&&
(
m_clipType
==
ClipType
::
AV
||
m_clipType
==
ClipType
::
Audio
||
m_clipType
==
ClipType
::
Playlist
||
m_clipType
==
ClipType
::
Unknown
)
)
{
AudioLevelsTask
::
start
({
ObjectType
::
BinClip
,
m_binId
.
toInt
()},
this
,
false
);
}
pCore
->
bin
()
->
reloadMonitorIfActive
(
clipId
());
...
...
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