mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
GESTimeline: Remove all tracks/layers when being disposed
This commit is contained in:
parent
b6277bd8bb
commit
9eedf06b7b
1 changed files with 11 additions and 0 deletions
|
@ -103,6 +103,17 @@ ges_timeline_dispose (GObject * object)
|
||||||
g_object_unref (timeline->discoverer);
|
g_object_unref (timeline->discoverer);
|
||||||
timeline->discoverer = NULL;
|
timeline->discoverer = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
while (timeline->tracks) {
|
||||||
|
TrackPrivate *priv = (TrackPrivate *) timeline->tracks->data;
|
||||||
|
ges_timeline_remove_track (timeline, priv->track);
|
||||||
|
}
|
||||||
|
|
||||||
|
while (timeline->layers) {
|
||||||
|
GESTimelineLayer *layer = (GESTimelineLayer *) timeline->layers->data;
|
||||||
|
ges_timeline_remove_layer (timeline, layer);
|
||||||
|
}
|
||||||
|
|
||||||
G_OBJECT_CLASS (ges_timeline_parent_class)->dispose (object);
|
G_OBJECT_CLASS (ges_timeline_parent_class)->dispose (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue