mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
layer: Remove child from children list before emitting "child-removed"
This commit is contained in:
parent
1efe0639de
commit
0bb313030b
1 changed files with 3 additions and 3 deletions
|
@ -342,6 +342,9 @@ ges_layer_remove_clip (GESLayer * layer, GESClip * clip)
|
|||
}
|
||||
gst_object_unref (current_layer);
|
||||
|
||||
/* Remove it from our list of controlled objects */
|
||||
layer->priv->clips_start = g_list_remove (layer->priv->clips_start, clip);
|
||||
|
||||
/* emit 'clip-removed' */
|
||||
g_signal_emit (layer, ges_layer_signals[OBJECT_REMOVED], 0, clip);
|
||||
|
||||
|
@ -350,9 +353,6 @@ ges_layer_remove_clip (GESLayer * layer, GESClip * clip)
|
|||
/* so neither in a timeline */
|
||||
ges_timeline_element_set_timeline (GES_TIMELINE_ELEMENT (clip), NULL);
|
||||
|
||||
/* Remove it from our list of controlled objects */
|
||||
layer->priv->clips_start = g_list_remove (layer->priv->clips_start, clip);
|
||||
|
||||
/* Remove our reference to the clip */
|
||||
gst_object_unref (clip);
|
||||
|
||||
|
|
Loading…
Reference in a new issue