timeline: fix adding track when layers contains clips
authorHenry Wilkes <hwilkes@igalia.com>
Mon, 13 Apr 2020 10:40:55 +0000 (11:40 +0100)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 29 Apr 2020 12:32:52 +0000 (12:32 +0000)
commit4daa0ecba42778f57860b2029ead771c6c700e66
tree2a730550884df12fd263bc6dbebaa16c92386018
parentdc9dbddbaef35add56148cb683272deeae01826d
timeline: fix adding track when layers contains clips

Made sure that adding a new track only uses select-tracks-for-object for
core children to determine whether a track elements should be added to the
new track or not, and *not* any other track. In particular, there should
be *no* change in the existing tracks of the timeline when adding another
track. Moreover, a new track should not invoke the creation of track
elements for other tracks.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/160>
ges/ges-timeline.c
tests/check/ges/basic.c