mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
timeline: Plug a leak when calling enable_update
This commit is contained in:
parent
7e7059d37d
commit
4b34d2bbb3
1 changed files with 3 additions and 8 deletions
|
@ -1241,21 +1241,16 @@ ges_timeline_is_updating (GESTimeline * timeline)
|
||||||
gboolean
|
gboolean
|
||||||
ges_timeline_enable_update (GESTimeline * timeline, gboolean enabled)
|
ges_timeline_enable_update (GESTimeline * timeline, gboolean enabled)
|
||||||
{
|
{
|
||||||
GList *tmp, *tracks;
|
GList *tmp;
|
||||||
gboolean res = TRUE;
|
gboolean res = TRUE;
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (timeline, "%s updates", enabled ? "Enabling" : "Disabling");
|
GST_DEBUG_OBJECT (timeline, "%s updates", enabled ? "Enabling" : "Disabling");
|
||||||
|
|
||||||
tracks = ges_timeline_get_tracks (timeline);
|
for (tmp = timeline->priv->tracks; tmp; tmp = tmp->next) {
|
||||||
|
if (!ges_track_enable_update (((TrackPrivate *) tmp->data)->track, enabled))
|
||||||
for (tmp = tracks; tmp; tmp = tmp->next) {
|
|
||||||
if (!ges_track_enable_update (tmp->data, enabled)) {
|
|
||||||
res = FALSE;
|
res = FALSE;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
g_list_free (tracks);
|
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue