track-element: add start to the position to which we wish we split the bindings.
authorMathieu Duponchelle <mduponchelle1@gmail.com>
Tue, 29 Oct 2013 23:27:36 +0000 (00:27 +0100)
committerThibault Saunier <thibault.saunier@collabora.com>
Wed, 30 Oct 2013 15:09:52 +0000 (12:09 -0300)
The bindings split is relative to the beginning of the clip.

ges/ges-clip.c

index 49b9c8f..24e7403 100644 (file)
@@ -1229,7 +1229,7 @@ ges_clip_split (GESClip * clip, guint64 position)
         GES_TIMELINE_ELEMENT (new_trackelement));
 
     ges_track_element_split_bindings (trackelement, new_trackelement,
-        position + inpoint);
+        position - start + inpoint);
   }
 
   _set_duration0 (GES_TIMELINE_ELEMENT (clip), position - _START (clip));