projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29f25c6
)
project: Add missing safe guard when listing assets
author
Thibault Saunier
<tsaunier@igalia.com>
Mon, 23 Sep 2019 19:10:59 +0000
(16:10 -0300)
committer
Thibault Saunier
<tsaunier@gnome.org>
Mon, 30 Sep 2019 12:58:24 +0000
(12:58 +0000)
ges/ges-project.c
patch
|
blob
|
history
diff --git
a/ges/ges-project.c
b/ges/ges-project.c
index 35f0efb798a7c874bd668854198ce3e55e445729..b19eb4b2094f030f734fa9c785d402d036257c49 100644
(file)
--- a/
ges/ges-project.c
+++ b/
ges/ges-project.c
@@
-1041,6
+1041,8
@@
ges_project_list_assets (GESProject * project, GType filter)
gpointer key, value;
g_return_val_if_fail (GES_IS_PROJECT (project), NULL);
+ g_return_val_if_fail (filter == G_TYPE_NONE
+ || g_type_is_a (filter, GES_TYPE_EXTRACTABLE), NULL);
g_hash_table_iter_init (&iter, project->priv->assets);
while (g_hash_table_iter_next (&iter, &key, &value)) {