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
  • #97

Closed
Open
Created Mar 12, 2020 by Henry Wilkes@hwilkesContributor

timeline-tree: not checking in-point for non-sources

Unless a timeline element is a GESSource, timeline-tree does not check that the start, duration or in-point of an element would become negative with the edit. This can lead to an underflow in the in-point when trimming:

>>> tl = GES.Timeline.new()
>>> layer = tl.append_layer()
>>> clip = GES.EffectClip.new("textoverlay", "identity")
>>> clip.set_start(20)
True
>>> clip.set_duration(20)
True
>>> clip.set_inpoint(10)
True
>>> layer.add_clip(clip)
True
>>> clip
effectclip1 [0:00:00.000000020 (0:00:00.000000010) 0:00:00.000000020]
>>> clip.trim(0)
True
>>> clip
effectclip1 [0:00:00.000000000 (5124095:34:33.709551606) 0:00:00.000000040]
>>> clip.inpoint  # underflow
18446744073709551606
Assignee
Assign to
Time tracking