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
efe3ee4d
Commit
efe3ee4d
authored
May 07, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix possible crash on subclip thumbnail creation
parent
df397caa
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/jobs/thumbjob.cpp
View file @
efe3ee4d
...
@@ -158,6 +158,10 @@ bool ThumbJob::commitResult(Fun &undo, Fun &redo)
...
@@ -158,6 +158,10 @@ bool ThumbJob::commitResult(Fun &undo, Fun &redo)
bool
ok
=
false
;
bool
ok
=
false
;
if
(
m_subClip
)
{
if
(
m_subClip
)
{
auto
subClip
=
std
::
static_pointer_cast
<
ProjectSubClip
>
(
pCore
->
projectItemModel
()
->
getItemByBinId
(
m_clipId
));
auto
subClip
=
std
::
static_pointer_cast
<
ProjectSubClip
>
(
pCore
->
projectItemModel
()
->
getItemByBinId
(
m_clipId
));
if
(
subClip
==
nullptr
)
{
// Subclip was deleted
return
ok
;
}
QImage
old
=
subClip
->
thumbnail
(
m_result
.
width
(),
m_result
.
height
()).
toImage
();
QImage
old
=
subClip
->
thumbnail
(
m_result
.
width
(),
m_result
.
height
()).
toImage
();
// note that the image is moved into lambda, it won't be available from this class anymore
// note that the image is moved into lambda, it won't be available from this class anymore
...
...
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