mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
project: Update loading asset when a URI is missing
This commit is contained in:
parent
4d527e24be
commit
04b1ef6eb7
2 changed files with 7 additions and 2 deletions
|
@ -542,6 +542,8 @@ new_asset_cb (GESAsset * source, GAsyncResult * res, PendingAsset * passet)
|
||||||
* make sure the assetid_pendingtlobjs will use it */
|
* make sure the assetid_pendingtlobjs will use it */
|
||||||
ges_asset_request_async (ges_asset_get_extractable_type (source),
|
ges_asset_request_async (ges_asset_get_extractable_type (source),
|
||||||
possible_id, NULL, (GAsyncReadyCallback) new_asset_cb, passet);
|
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);
|
pendings = g_hash_table_lookup (priv->assetid_pendingtlobjs, id);
|
||||||
if (pendings) {
|
if (pendings) {
|
||||||
|
|
|
@ -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;
|
return new_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -482,8 +484,9 @@ new_asset_cb (GESAsset * source, GAsyncResult * res, GESProject * project)
|
||||||
|
|
||||||
return;
|
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_free (possible_id);
|
||||||
g_error_free (error);
|
g_error_free (error);
|
||||||
|
|
Loading…
Reference in a new issue