mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
project: Add missing safe guard when listing assets
This commit is contained in:
parent
29f25c6c43
commit
e0f8b54a03
1 changed files with 2 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue