mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 04:22:27 +00:00
track: Do not remove a TrackElement from a NULL clip
This commit is contained in:
parent
c73ced52f8
commit
ae80f08869
1 changed files with 3 additions and 2 deletions
|
@ -384,8 +384,9 @@ dispose_trackelements_foreach (GESTrackElement * trackelement, GESTrack * track)
|
|||
|
||||
clip = GES_CLIP (GES_TIMELINE_ELEMENT_PARENT (trackelement));
|
||||
|
||||
ges_container_remove (GES_CONTAINER (clip),
|
||||
GES_TIMELINE_ELEMENT (trackelement));
|
||||
if (clip)
|
||||
ges_container_remove (GES_CONTAINER (clip),
|
||||
GES_TIMELINE_ELEMENT (trackelement));
|
||||
remove_object_internal (track, trackelement);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue