mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
clip: Snapping should happen with one and only one TrackElement
This was leading to clip with TrackElements that were not at the same position in their container, and weird bugs, see: https://gitlab.gnome.org/GNOME/pitivi/issues/2133
This commit is contained in:
parent
211f3b5af1
commit
eff9363d3c
1 changed files with 5 additions and 3 deletions
|
@ -152,10 +152,12 @@ _set_start (GESTimelineElement * element, GstClockTime start)
|
||||||
if (child != container->initiated_move) {
|
if (child != container->initiated_move) {
|
||||||
/* Make the snapping happen if in a timeline */
|
/* Make the snapping happen if in a timeline */
|
||||||
timeline = GES_TIMELINE_ELEMENT_TIMELINE (child);
|
timeline = GES_TIMELINE_ELEMENT_TIMELINE (child);
|
||||||
if (timeline == NULL || ges_timeline_move_object_simple (timeline, child,
|
if (timeline && !container->initiated_move) {
|
||||||
NULL, GES_EDGE_NONE, start) == FALSE)
|
if (ges_timeline_move_object_simple (timeline, child, NULL, GES_EDGE_NONE, start))
|
||||||
_set_start0 (GES_TIMELINE_ELEMENT (child), start);
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
_set_start0 (GES_TIMELINE_ELEMENT (child), start);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
container->children_control_mode = GES_CHILDREN_UPDATE;
|
container->children_control_mode = GES_CHILDREN_UPDATE;
|
||||||
|
|
Loading…
Reference in a new issue