From 8ce2b97a936c13a48bc3ef97eb19c557e00e3a6a Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 11 Mar 2016 17:29:08 +0100 Subject: [PATCH] ges: Don't emit timeline::group-removed when ungrouping outside a timeline --- ges/ges-group.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ges/ges-group.c b/ges/ges-group.c index fa060a9de7..8219cb8e3b 100644 --- a/ges/ges-group.c +++ b/ges/ges-group.c @@ -571,8 +571,10 @@ _ungroup (GESContainer * group, gboolean recursive) g_ptr_array_add (children_array, 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_list_free_full (children, gst_object_unref);