mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
timeline: No error when moving an object as part of the context
It will just happen from the context
This commit is contained in:
parent
1a69f0d535
commit
72519e6c5c
1 changed files with 8 additions and 2 deletions
|
@ -2092,9 +2092,15 @@ ges_timeline_move_object_simple (GESTimeline * timeline,
|
|||
|
||||
/* We only work with GESSource-s and we check that we are not already moving
|
||||
* the specified element ourself */
|
||||
if (GES_IS_SOURCE (element) == FALSE ||
|
||||
g_list_find (timeline->priv->movecontext.moving_trackelements, element))
|
||||
if (GES_IS_SOURCE (element) == FALSE) {
|
||||
GST_INFO_OBJECT (element, "Not a source, not moving.");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (g_list_find (timeline->priv->movecontext.moving_trackelements, element)) {
|
||||
GST_DEBUG_OBJECT (element, "Already part of the moving context.");
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
timeline->priv->needs_rollback = FALSE;
|
||||
track_element = GES_TRACK_ELEMENT (element);
|
||||
|
|
Loading…
Reference in a new issue