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
f28f7566
Commit
f28f7566
authored
Nov 29, 2019
by
Jean-Baptiste Mardelle
Browse files
Fix missing audio thumbs on clip monitor
parent
45ebc3fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/projectitemmodel.cpp
View file @
f28f7566
...
...
@@ -651,10 +651,10 @@ bool ProjectItemModel::requestAddBinClip(QString &id, const QDomElement &descrip
int
loadJob
=
pCore
->
jobManager
()
->
startJob
<
LoadJob
>
({
id
},
-
1
,
QString
(),
description
,
std
::
bind
(
readyCallBack
,
id
));
int
thumbJob
=
pCore
->
jobManager
()
->
startJob
<
ThumbJob
>
({
id
},
loadJob
,
QString
(),
150
,
0
,
true
);
ClipType
::
ProducerType
type
=
new_clip
->
clipType
();
if
(
type
==
ClipType
::
AV
||
type
==
ClipType
::
Audio
||
type
==
ClipType
::
Playlist
)
{
if
(
type
==
ClipType
::
AV
||
type
==
ClipType
::
Audio
||
type
==
ClipType
::
Playlist
||
type
==
ClipType
::
Unknown
)
{
pCore
->
jobManager
()
->
startJob
<
AudioThumbJob
>
({
id
},
loadJob
,
QString
());
}
if
(
type
==
ClipType
::
AV
||
type
==
ClipType
::
Video
||
type
==
ClipType
::
Playlist
)
{
if
(
type
==
ClipType
::
AV
||
type
==
ClipType
::
Video
||
type
==
ClipType
::
Playlist
||
type
==
ClipType
::
Unknown
)
{
pCore
->
jobManager
()
->
startJob
<
CacheJob
>
({
id
},
thumbJob
,
QString
(),
150
);
}
}
...
...
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