Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Kdenlive
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
252
Issues
252
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Multimedia
Kdenlive
Commits
6d8c7cfb
Commit
6d8c7cfb
authored
Oct 06, 2019
by
Jean-Baptiste Mardelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crash on composition resize
parent
4d0fad0a
Pipeline
#8615
passed with stage
in 20 minutes and 2 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
src/assets/keyframes/model/keyframemodel.cpp
src/assets/keyframes/model/keyframemodel.cpp
+7
-4
src/assets/keyframes/model/keyframemodellist.cpp
src/assets/keyframes/model/keyframemodellist.cpp
+1
-2
No files found.
src/assets/keyframes/model/keyframemodel.cpp
View file @
6d8c7cfb
...
...
@@ -703,7 +703,7 @@ QString KeyframeModel::getAnimProperty() const
}
int
ix
=
0
;
bool
first
=
true
;
std
::
shared_ptr
<
Mlt
::
Animation
>
anim
;
std
::
shared_ptr
<
Mlt
::
Animation
>
anim
(
nullptr
)
;
for
(
const
auto
&
keyframe
:
m_keyframeList
)
{
if
(
first
)
{
switch
(
m_paramType
)
{
...
...
@@ -731,9 +731,12 @@ QString KeyframeModel::getAnimProperty() const
anim
->
key_set_type
(
ix
,
convertToMltType
(
keyframe
.
second
.
first
));
ix
++
;
}
char
*
cut
=
anim
->
serialize_cut
();
QString
ret
(
cut
);
free
(
cut
);
QString
ret
;
if
(
anim
)
{
char
*
cut
=
anim
->
serialize_cut
();
ret
=
QString
(
cut
);
free
(
cut
);
}
return
ret
;
}
...
...
src/assets/keyframes/model/keyframemodellist.cpp
View file @
6d8c7cfb
...
...
@@ -384,7 +384,7 @@ void KeyframeModelList::resizeKeyframes(int oldIn, int oldOut, int in, int out,
}
}
}
}
else
{
}
else
if
(
oldIn
!=
in
)
{
GenTime
old_in
(
oldIn
,
pCore
->
getCurrentFps
());
GenTime
new_in
(
in
,
pCore
->
getCurrentFps
());
Keyframe
kf
=
getKeyframe
(
old_in
,
&
ok
);
...
...
@@ -418,7 +418,6 @@ void KeyframeModelList::resizeKeyframes(int oldIn, int oldOut, int in, int out,
break
;
}
}
// qDebug()<<"/// \n\nKEYS TO DELETE: "<<positions<<"\n------------------------";
}
}
else
{
...
...
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