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
7249f2fa
Commit
7249f2fa
authored
May 05, 2019
by
Jean-Baptiste Mardelle
Browse files
Fix wrong thumbnails sometimes displayed
parent
34bed63e
Pipeline
#3099
passed with stage
in 20 minutes and 7 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/bin/projectclip.cpp
View file @
7249f2fa
...
...
@@ -518,6 +518,8 @@ std::shared_ptr<Mlt::Producer> ProjectClip::thumbProducer()
Mlt
::
Filter
padder
(
*
pCore
->
thumbProfile
(),
"resize"
);
Mlt
::
Filter
converter
(
*
pCore
->
thumbProfile
(),
"avcolor_space"
);
m_thumbsProducer
->
set
(
"audio_index"
,
-
1
);
// Required to make get_playtime() return > 1
m_thumbsProducer
->
set
(
"out"
,
m_thumbsProducer
->
get_length
()
-
1
);
m_thumbsProducer
->
attach
(
scaler
);
m_thumbsProducer
->
attach
(
padder
);
m_thumbsProducer
->
attach
(
converter
);
...
...
src/jobs/thumbjob.cpp
View file @
7249f2fa
...
...
@@ -52,8 +52,6 @@ ThumbJob::ThumbJob(const QString &binId, int imageHeight, int frameNumber, bool
m_binClip
=
pCore
->
projectItemModel
()
->
getClipByBinID
(
binId
);
}
else
if
(
item
->
itemType
()
==
AbstractProjectItem
::
SubClipItem
)
{
m_subClip
=
true
;
m_binClip
=
pCore
->
projectItemModel
()
->
getClipByBinID
(
item
->
parent
()
->
clipId
());
m_frameNumber
=
std
::
max
(
m_frameNumber
,
std
::
static_pointer_cast
<
ProjectSubClip
>
(
item
)
->
zone
().
x
());
}
}
...
...
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