ges-formatter: Removed assert to allow saving projects with empty timeline

Removed assert in ges-formatter.c to allow saving projects with empty timeline.
This commit is contained in:
Volodymyr Rudyi 2012-04-08 00:08:43 +03:00 committed by Thibault Saunier
parent 4a424e83fd
commit b102df2d4d

View file

@ -470,15 +470,6 @@ ges_formatter_save_to_uri (GESFormatter * formatter, GESTimeline *
timeline, const gchar * uri)
{
GESFormatterClass *klass = GES_FORMATTER_GET_CLASS (formatter);
GList *layers;
/* Saving an empty timeline is not allowed */
/* FIXME : Having a ges_timeline_is_empty() would be more efficient maybe */
layers = ges_timeline_get_layers (timeline);
g_return_val_if_fail (layers != NULL, FALSE);
g_list_foreach (layers, (GFunc) g_object_unref, NULL);
g_list_free (layers);
if (klass->save_to_uri)
return klass->save_to_uri (formatter, timeline, uri);