mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
timeline: fix segfaults
don't call the timeline update, when the reference is invalid https://bugzilla.gnome.org/show_bug.cgi?id=702605
This commit is contained in:
parent
bbdcb9bd04
commit
30f0924055
2 changed files with 2 additions and 1 deletions
|
@ -382,6 +382,7 @@ _loading_done (GESFormatter * self)
|
|||
priv->parsecontext = NULL;
|
||||
|
||||
g_hash_table_foreach (priv->layers, (GHFunc) _set_auto_transition, NULL);
|
||||
ges_timeline_enable_update (self->timeline, TRUE);
|
||||
ges_project_set_loaded (self->project, self);
|
||||
}
|
||||
|
||||
|
|
|
@ -516,8 +516,8 @@ ges_project_set_loaded (GESProject * project, GESFormatter * formatter)
|
|||
g_signal_emit (project, _signals[LOADED_SIGNAL], 0, formatter->timeline);
|
||||
|
||||
/* We are now done with that formatter */
|
||||
ges_project_remove_formatter (project, formatter);
|
||||
ges_timeline_enable_update (formatter->timeline, TRUE);
|
||||
ges_project_remove_formatter (project, formatter);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue