mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 22:16:22 +00:00
timeline: Remove TrackElement from its container on GESTimelineLayer::"clip-removed"
.... when the Track is NULL
This commit is contained in:
parent
0df2d4f945
commit
7313916ae8
1 changed files with 6 additions and 3 deletions
|
@ -1954,12 +1954,15 @@ layer_object_removed_cb (GESTimelineLayer * layer, GESClip * clip,
|
|||
trackelements = ges_container_get_children (GES_CONTAINER (clip));
|
||||
for (tmp = trackelements; tmp; tmp = tmp->next) {
|
||||
GESTrackElement *track_element = (GESTrackElement *) tmp->data;
|
||||
GESTrack *track = ges_track_element_get_track (track_element);
|
||||
|
||||
GST_DEBUG_OBJECT (timeline, "Trying to remove TrackElement %p",
|
||||
track_element);
|
||||
if (G_LIKELY (g_list_find_custom (timeline->priv->priv_tracks,
|
||||
ges_track_element_get_track (track_element),
|
||||
(GCompareFunc) custom_find_track))) {
|
||||
|
||||
/* FIXME Check if we should actually check that we control the
|
||||
* track in the new management of TrackElement context */
|
||||
if (G_LIKELY (g_list_find_custom (timeline->priv->priv_tracks, track,
|
||||
(GCompareFunc) custom_find_track) || track == NULL)) {
|
||||
GST_DEBUG ("Belongs to one of the tracks we control");
|
||||
|
||||
ges_container_remove (GES_CONTAINER (clip),
|
||||
|
|
Loading…
Reference in a new issue