mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
timeline: Cleanup the moved_clip list before rolling back
Otherwise we might end up using an already freed pointer Differential Revision: https://phabricator.freedesktop.org/D1640
This commit is contained in:
parent
02e151bce6
commit
a563578b0a
1 changed files with 2 additions and 0 deletions
|
@ -1730,6 +1730,7 @@ timeline_ripple_object (GESTimeline * timeline, GESTrackElement * obj,
|
|||
g_list_free (moved_clips);
|
||||
_set_start0 (GES_TIMELINE_ELEMENT (obj), position);
|
||||
|
||||
moved_clips = NULL;
|
||||
if (timeline->priv->needs_rollback && !timeline->priv->rolling_back) {
|
||||
timeline->priv->rolling_back = TRUE;
|
||||
for (tmp = mv_ctx->moving_trackelements; tmp; tmp = tmp->next) {
|
||||
|
@ -1745,6 +1746,7 @@ timeline_ripple_object (GESTimeline * timeline, GESTrackElement * obj,
|
|||
|
||||
}
|
||||
g_list_free (moved_clips);
|
||||
moved_clips = NULL;
|
||||
_set_start0 (GES_TIMELINE_ELEMENT (obj), position - offset);
|
||||
|
||||
ges_timeline_emit_snappig (timeline, obj, NULL);
|
||||
|
|
Loading…
Reference in a new issue