projects
/
platform
/
upstream
/
gst-editing-services.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cf5d3d
)
ges: Assert if an asset is not in the global hashtable
author
Thibault Saunier
<tsaunier@gnome.org>
Sat, 10 May 2014 20:38:21 +0000
(22:38 +0200)
committer
Thibault Saunier
<tsaunier@gnome.org>
Sat, 10 May 2014 20:38:21 +0000
(22:38 +0200)
COVERITY CID 1151679
ges/ges-asset.c
patch
|
blob
|
history
diff --git
a/ges/ges-asset.c
b/ges/ges-asset.c
index
571a105
..
4128dbf
100644
(file)
--- a/
ges/ges-asset.c
+++ b/
ges/ges-asset.c
@@
-637,8
+637,8
@@
ges_asset_set_id (GESAsset * asset, const gchar * id)
entries = g_hash_table_lookup (type_entries_table,
_extractable_type_name (asset->priv->extractable_type));
- g_hash_table_lookup_extended (entries, priv->id, &orig_id,
-
(gpointer *) & entry
);
+ g_
return_if_fail (g_
hash_table_lookup_extended (entries, priv->id, &orig_id,
+
(gpointer *) & entry)
);
g_hash_table_steal (entries, priv->id);
g_hash_table_insert (entries, g_strdup (id), entry);