From 14a2f5943d97318ce87d268f9dd17629a94c5800 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 27 Dec 2013 10:08:47 +0100 Subject: [PATCH] base-xml-formatter: Emit 'loaded' right after a project with empy timeline is loaded https://bugzilla.gnome.org/show_bug.cgi?id=720040 --- ges/ges-base-xml-formatter.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ges/ges-base-xml-formatter.c b/ges/ges-base-xml-formatter.c index 8bd51064e3..23f6ef7fe0 100644 --- a/ges/ges-base-xml-formatter.c +++ b/ges/ges-base-xml-formatter.c @@ -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; }