Skip to content
GitLab
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
f8ecc140
Commit
f8ecc140
authored
Mar 02, 2020
by
Jean-Baptiste Mardelle
Browse files
delay cache job to allow faster clip loading
parent
f6a255ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/bin/projectclip.cpp
View file @
f8ecc140
...
...
@@ -497,6 +497,11 @@ bool ProjectClip::setProducer(std::shared_ptr<Mlt::Producer> producer, bool repl
m_videoProducers
.
clear
();
m_timewarpProducers
.
clear
();
emit
refreshPropertiesPanel
();
if
(
m_clipType
==
ClipType
::
AV
||
m_clipType
==
ClipType
::
Video
||
m_clipType
==
ClipType
::
Playlist
)
{
QTimer
::
singleShot
(
1000
,
this
,
[
this
]()
{
pCore
->
jobManager
()
->
startJob
<
CacheJob
>
({
m_binId
},
-
1
,
QString
());
});
}
replaceInTimeline
();
return
true
;
}
...
...
src/bin/projectitemmodel.cpp
View file @
f8ecc140
...
...
@@ -693,9 +693,6 @@ bool ProjectItemModel::requestAddBinClip(QString &id, const QDomElement &descrip
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
||
type
==
ClipType
::
Unknown
)
{
pCore
->
jobManager
()
->
startJob
<
CacheJob
>
({
id
},
loadJob
,
QString
());
}
}
return
res
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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