From 1a69f0d53550e6bd4030742479ef0c605fe1788b Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 8 Feb 2019 17:44:40 -0300 Subject: [PATCH] timeline: Not being able to trim and object is an error So error out when that happens. --- ges/ges-timeline.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ges/ges-timeline.c b/ges/ges-timeline.c index f45343a18c..4e273e640f 100644 --- a/ges/ges-timeline.c +++ b/ges/ges-timeline.c @@ -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);