From 30f09240557ad752ce085a2881a289108a55f64b Mon Sep 17 00:00:00 2001 From: Lubosz Sarnecki Date: Thu, 20 Jun 2013 14:23:26 +0200 Subject: [PATCH] timeline: fix segfaults don't call the timeline update, when the reference is invalid https://bugzilla.gnome.org/show_bug.cgi?id=702605 --- ges/ges-base-xml-formatter.c | 1 + ges/ges-project.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ges/ges-base-xml-formatter.c b/ges/ges-base-xml-formatter.c index 12d2ff0..96c4712 100644 --- a/ges/ges-base-xml-formatter.c +++ b/ges/ges-base-xml-formatter.c @@ -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); } diff --git a/ges/ges-project.c b/ges/ges-project.c index 1dd22c7..2607713 100644 --- a/ges/ges-project.c +++ b/ges/ges-project.c @@ -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; } -- 2.7.4