Commit ad4eb9a0 authored by Thibault Saunier's avatar Thibault Saunier 🌵
Browse files

project: Do not emit 'error-loading-asset' when we are trying to update the ID

parent 8e61a5a9
...@@ -782,13 +782,15 @@ ges_project_create_asset_sync (GESProject * project, const gchar * id, ...@@ -782,13 +782,15 @@ ges_project_create_asset_sync (GESProject * project, const gchar * id,
GESAsset *tmpasset; GESAsset *tmpasset;
tmpasset = ges_asset_cache_lookup (extractable_type, id); tmpasset = ges_asset_cache_lookup (extractable_type, id);
g_signal_emit (project, _signals[ASSET_LOADING_SIGNAL], 0, tmpasset);
g_signal_emit (project, _signals[ERROR_LOADING_ASSET], 0, *error, id,
extractable_type);
possible_id = ges_project_try_updating_id (project, tmpasset, *error); possible_id = ges_project_try_updating_id (project, tmpasset, *error);
if (possible_id == NULL) if (possible_id == NULL) {
g_signal_emit (project, _signals[ASSET_LOADING_SIGNAL], 0, tmpasset);
g_signal_emit (project, _signals[ERROR_LOADING_ASSET], 0, *error, id,
extractable_type);
return NULL; return NULL;
}
g_clear_error (error); g_clear_error (error);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment