g_return_val_if_fail (GES_IS_TIMELINE (timeline), FALSE);
if (klass->load_from_uri) {
- ges_timeline_enable_update (timeline, FALSE);
formatter->timeline = timeline;
ret = klass->load_from_uri (formatter, timeline, uri, error);
- ges_timeline_enable_update (timeline, TRUE);
}
return ret;
{
g_signal_emit (data->project, _signals[LOADED_SIGNAL], 0, data->timeline);
+ ges_timeline_enable_update (data->timeline, TRUE);
gst_object_unref (data->project);
gst_object_unref (data->timeline);
g_slice_free (EmitLoadedInIdle, data);
}
ges_project_add_formatter (GES_PROJECT (project), formatter);
+ ges_timeline_enable_update (timeline, FALSE);
ges_formatter_load_from_uri (formatter, timeline, priv->uri, &lerr);
if (lerr) {
GST_WARNING_OBJECT (project, "Could not load the timeline,"
/* We are now done with that formatter */
ges_project_remove_formatter (project, formatter);
+ ges_timeline_enable_update (formatter->timeline, TRUE);
return TRUE;
}