clip: remove children if failed to add to layer
authorHenry Wilkes <hwilkes@igalia.com>
Tue, 21 Apr 2020 13:05:55 +0000 (14:05 +0100)
committerHenry Wilkes <hwilkes@igalia.com>
Thu, 7 May 2020 08:37:15 +0000 (09:37 +0100)
commitcdac205db656ae5b03ee8c692d6467d727eca133
tree34e1d0cc239577e1079760daa4f08da6d2aed1da
parentfba267926fecdfea390f827ae21e1658756d0626
clip: remove children if failed to add to layer

If adding to a layer fails during ges_timeline_add_clip, any new children
that were created during this process should be removed from the clip to
put it back into its previous state.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/169>
ges/ges-layer.c
tests/check/ges/clip.c