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:
Lubosz Sarnecki 2013-06-20 14:23:26 +02:00 committed by Thibault Saunier
parent bbdcb9bd04
commit 30f0924055
2 changed files with 2 additions and 1 deletions

View file

@ -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);
}

View file

@ -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;
}