base-xml-formatter: Emit 'loaded' right after a project with empy timeline is loaded

https://bugzilla.gnome.org/show_bug.cgi?id=720040
This commit is contained in:
Thibault Saunier 2013-12-27 10:08:47 +01:00
parent d00283f309
commit 14a2f5943d

View file

@ -31,6 +31,8 @@ G_DEFINE_ABSTRACT_TYPE (GESBaseXmlFormatter, ges_base_xml_formatter,
#define _GET_PRIV(o)\
(G_TYPE_INSTANCE_GET_PRIVATE ((o), GES_TYPE_BASE_XML_FORMATTER, GESBaseXmlFormatterPrivate))
static void _loading_done (GESFormatter * self);
typedef struct PendingEffects
{
gchar *track_id;
@ -231,6 +233,10 @@ _load_from_uri (GESFormatter * self, GESTimeline * timeline, const gchar * uri,
if (!priv->parsecontext)
return FALSE;
if (g_hash_table_size (priv->assetid_pendingclips) == 0 &&
priv->pending_assets == NULL)
g_idle_add ((GSourceFunc) _loading_done, self);
return TRUE;
}