mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
clip: Emit signals while splitting in a way the operation is undoable
Basically if we do not emit a "duration" change of the clip being splitted first when executing the 'reverse' operations would lead to fully overallaping clips.
This commit is contained in:
parent
a46390ff56
commit
b294b56a76
1 changed files with 4 additions and 0 deletions
|
@ -1376,6 +1376,9 @@ ges_clip_split (GESClip * clip, guint64 position)
|
|||
inpoint + old_duration * media_duration_factor);
|
||||
_set_duration0 (GES_TIMELINE_ELEMENT (new_object), new_duration);
|
||||
|
||||
_DURATION (clip) = old_duration;
|
||||
g_object_notify (G_OBJECT (clip), "duration");
|
||||
|
||||
/* We do not want the timeline to create again TrackElement-s */
|
||||
ges_clip_set_moving_from_layer (new_object, TRUE);
|
||||
ges_layer_add_clip (clip->priv->layer, new_object);
|
||||
|
@ -1409,6 +1412,7 @@ ges_clip_split (GESClip * clip, guint64 position)
|
|||
}
|
||||
|
||||
ELEMENT_SET_FLAG (clip, GES_TIMELINE_ELEMENT_SET_SIMPLE);
|
||||
_DURATION (clip) = duration;
|
||||
_set_duration0 (GES_TIMELINE_ELEMENT (clip), old_duration);
|
||||
ELEMENT_UNSET_FLAG (clip, GES_TIMELINE_ELEMENT_SET_SIMPLE);
|
||||
|
||||
|
|
Loading…
Reference in a new issue