mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +00:00
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:
parent
4a424e83fd
commit
b102df2d4d
1 changed files with 0 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue