From: Thibault Saunier Date: Mon, 23 Sep 2019 19:10:59 +0000 (-0300) Subject: project: Add missing safe guard when listing assets X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e0f8b54a03f7c6d04641ac756067b2ad9f029b6e;p=platform%2Fupstream%2Fgst-editing-services.git project: Add missing safe guard when listing assets --- diff --git a/ges/ges-project.c b/ges/ges-project.c index 35f0efb..b19eb4b 100644 --- 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)) {