From 350c5a07bf3a00e26937c9b09bd6255367cd466b Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 11 Jan 2013 19:10:31 -0300 Subject: [PATCH] layer: State assets we create async as loading to the project --- ges/ges-timeline-layer.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ges/ges-timeline-layer.c b/ges/ges-timeline-layer.c index e6a131a018..957a23ba6c 100644 --- a/ges/ges-timeline-layer.c +++ b/ges/ges-timeline-layer.c @@ -507,8 +507,15 @@ ges_timeline_layer_add_object (GESTimelineLayer * layer, id = ges_extractable_get_id (GES_EXTRACTABLE (object)); asset = ges_asset_request (G_OBJECT_TYPE (object), id, NULL); if (asset == NULL) { + GESProject *project = layer->timeline ? + GES_PROJECT (ges_extractable_get_asset (GES_EXTRACTABLE + (layer->timeline))) : NULL; + ges_asset_request_async (G_OBJECT_TYPE (object), id, NULL, (GAsyncReadyCallback) new_asset_cb, mudata); + + if (project) + ges_project_add_loading_asset (project, G_OBJECT_TYPE (object), id); g_free (id); GST_LOG_OBJECT (layer, "Object added async");