From: Thibault Saunier Date: Fri, 11 Jan 2013 22:10:31 +0000 (-0300) Subject: layer: State assets we create async as loading to the project X-Git-Tag: 1.19.3~493^2~2038 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=350c5a07bf3a00e26937c9b09bd6255367cd466b;p=platform%2Fupstream%2Fgstreamer.git layer: State assets we create async as loading to the project --- diff --git a/ges/ges-timeline-layer.c b/ges/ges-timeline-layer.c index e6a131a..957a23b 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");