mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
ges: Add debug output when get_element returns NULL
This commit is contained in:
parent
4aaee7d5f5
commit
8dfac3c94f
1 changed files with 14 additions and 0 deletions
|
@ -3308,6 +3308,20 @@ ges_timeline_get_element (GESTimeline * timeline, const gchar * name)
|
|||
if (ret)
|
||||
return gst_object_ref (ret);
|
||||
|
||||
#ifndef GST_DISABLE_GST_DEBUG
|
||||
{
|
||||
GList *element_names, *tmp;
|
||||
element_names = g_hash_table_get_keys (timeline->priv->all_elements);
|
||||
|
||||
GST_INFO_OBJECT (timeline, "Does not contain element %s", name);
|
||||
|
||||
for (tmp = element_names; tmp; tmp = tmp->next) {
|
||||
GST_DEBUG_OBJECT (timeline, "Containes: %s", (gchar *) tmp->data);
|
||||
}
|
||||
g_list_free (element_names);
|
||||
}
|
||||
#endif
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue