Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gst-editing-services gst-editing-services
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 74
    • Issues 74
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GStreamer
  • gst-editing-servicesgst-editing-services
  • Issues
  • #88

Closed
Open
Created Feb 24, 2020 by Henry Wilkes@hwilkesContributor

clip: incorrect `timeline` of children

Currently, you can add track elements to a clip from a different timeline. This can lead to a difference in the timeline of the clip and its children:

>>> timeline = GES.Timeline.new_audio_video()
>>> alt_timeline = GES.Timeline.new_audio_video()
>>> layer = timeline.append_layer()
>>> asset = GES.Asset.request(GES.TestClip, None)
>>> clip = layer.add_asset(asset, 0, 0, 10, GES.TrackType.AUDIO)
>>> effect = GES.Effect.new("agingtv")
>>> alt_timeline.get_tracks()[0].add_element(effect)
True
>>> clip.add(effect)
True
>>> clip.timeline is effect.timeline
False

I propose that you should only be able to add a track element to a clip if it has the same timeline, or has a NULL timeline (and the clip/timeline should make sure to set the timeline once the element is added to a track).

Related: #87

Assignee
Assign to
Time tracking