project: Update loading asset when a URI is missing

This commit is contained in:
Thibault Saunier 2013-01-30 20:12:26 -03:00
parent 4d527e24be
commit 04b1ef6eb7
2 changed files with 7 additions and 2 deletions

View file

@ -542,6 +542,8 @@ new_asset_cb (GESAsset * source, GAsyncResult * res, PendingAsset * passet)
* make sure the assetid_pendingtlobjs will use it */
ges_asset_request_async (ges_asset_get_extractable_type (source),
possible_id, NULL, (GAsyncReadyCallback) new_asset_cb, passet);
ges_project_add_loading_asset (GES_FORMATTER (self)->project,
ges_asset_get_extractable_type (source), possible_id);
pendings = g_hash_table_lookup (priv->assetid_pendingtlobjs, id);
if (pendings) {

View file

@ -461,6 +461,8 @@ ges_project_try_updating_id (GESProject * project, GESAsset * asset,
}
}
g_hash_table_remove (project->priv->loading_assets, ges_asset_get_id (asset));
return new_id;
}
@ -482,8 +484,9 @@ new_asset_cb (GESAsset * source, GAsyncResult * res, GESProject * project)
return;
}
ges_asset_request_async (ges_asset_get_extractable_type (source),
possible_id, NULL, (GAsyncReadyCallback) new_asset_cb, project);
ges_project_create_asset (project, possible_id,
ges_asset_get_extractable_type (source));
g_free (possible_id);
g_error_free (error);