timeline: Make ripple start be trimming
authorThibault Saunier <thibault.saunier@collabora.com>
Sat, 7 Sep 2013 06:10:12 +0000 (02:10 -0400)
committerThibault Saunier <thibault.saunier@collabora.com>
Sat, 7 Sep 2013 06:10:12 +0000 (02:10 -0400)
This is a more natural behaviour as a user instead of doing nothing at
all.

ges/ges-timeline.c

index c4954e4..900afb2 100644 (file)
@@ -1500,8 +1500,9 @@ timeline_ripple_object (GESTimeline * timeline, GESTrackElement * obj,
       GST_DEBUG ("Done Rippling end");
       break;
     case GES_EDGE_START:
-      GST_WARNING ("Ripple start doesn't exist!");
-
+      GST_INFO ("Ripple start doesn't make sense, trimming instead");
+      timeline->priv->movecontext.needs_move_ctx = TRUE;
+      timeline_trim_object (timeline, obj, layers, edge, position);
       break;
     default:
       GST_DEBUG ("Can not ripple edge: %i", edge);