Skip to content
  • Henry Wilkes's avatar
    uri-clip: don't assume duration needs to stay the same · a6d0418f
    Henry Wilkes authored
    ges_uri_clip_asset_get_duration does not tell us what the duration in
    the timeline needs to be. Especially when we have time effects, or
    effects with finite max-durations. So we should no longer expect the
    duration to stay the same when replacing assets. Instead, we just check
    that the new max-duration would be compatible with the current in-point
    (which was not checked before), and the clip would not be totally
    overlapped if its duration-limit changes.
    
    This is based on the assumption that each source is replaced one-to-one
    in its track. If a source is replaced with nothing in the same track,
    this check may be a little too strong (but still mostly weaker than
    before). However, problems could occur if track selection does
    something unexpected, such as placing the new source in a track not
    previously occupied.
    
    Part-of: <!177>
    a6d0418f