ges: Don't emit timeline::group-removed when ungrouping outside a timeline

This commit is contained in:
Thibault Saunier 2016-03-11 17:29:08 +01:00
parent c4356db40c
commit 8ce2b97a93

View file

@ -571,8 +571,10 @@ _ungroup (GESContainer * group, gboolean recursive)
g_ptr_array_add (children_array, child); g_ptr_array_add (children_array, child);
ret = g_list_append (ret, child); ret = g_list_append (ret, child);
} }
ges_timeline_emit_group_removed (timeline, (GESGroup *) group,
children_array); if (timeline)
ges_timeline_emit_group_removed (timeline, (GESGroup *) group,
children_array);
g_ptr_array_free (children_array, TRUE); g_ptr_array_free (children_array, TRUE);
g_list_free_full (children, gst_object_unref); g_list_free_full (children, gst_object_unref);