mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
ges: Assert if an asset is not in the global hashtable
COVERITY CID 1151679
This commit is contained in:
parent
0cf5d3df13
commit
a1bf40b9e1
1 changed files with 2 additions and 2 deletions
|
@ -637,8 +637,8 @@ ges_asset_set_id (GESAsset * asset, const gchar * id)
|
||||||
entries = g_hash_table_lookup (type_entries_table,
|
entries = g_hash_table_lookup (type_entries_table,
|
||||||
_extractable_type_name (asset->priv->extractable_type));
|
_extractable_type_name (asset->priv->extractable_type));
|
||||||
|
|
||||||
g_hash_table_lookup_extended (entries, priv->id, &orig_id,
|
g_return_if_fail (g_hash_table_lookup_extended (entries, priv->id, &orig_id,
|
||||||
(gpointer *) & entry);
|
(gpointer *) & entry));
|
||||||
|
|
||||||
g_hash_table_steal (entries, priv->id);
|
g_hash_table_steal (entries, priv->id);
|
||||||
g_hash_table_insert (entries, g_strdup (id), entry);
|
g_hash_table_insert (entries, g_strdup (id), entry);
|
||||||
|
|
Loading…
Reference in a new issue