mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
d00283f309
commit
14a2f5943d
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue