timeline: Not being able to trim and object is an error

So error out when that happens.
This commit is contained in:
Thibault Saunier 2019-02-08 17:44:40 -03:00 committed by Thibault Saunier
parent 100276d02a
commit 1a69f0d535

View file

@ -1864,7 +1864,8 @@ timeline_ripple_object (GESTimeline * timeline, GESTrackElement * obj,
case GES_EDGE_START:
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);
if (!timeline_trim_object (timeline, obj, layers, edge, position))
goto error;
break;
default:
GST_DEBUG ("Can not ripple edge: %i", edge);