timeline: Setting duration to the same value is valid
authorThibault Saunier <tsaunier@igalia.com>
Fri, 8 Feb 2019 20:43:34 +0000 (17:43 -0300)
committerThibault Saunier <tsaunier@gnome.org>
Fri, 15 Mar 2019 23:51:55 +0000 (23:51 +0000)
And should not be advertised as if the operation failed.

ges/ges-timeline.c

index 1a54a40..f45343a 100644 (file)
@@ -1737,7 +1737,7 @@ ges_timeline_trim_object_simple (GESTimeline * timeline,
       /* Not moving, avoid overhead */
       if (duration == _DURATION (track_element)) {
         GST_DEBUG_OBJECT (track_element, "No change in duration");
-        return FALSE;
+        return TRUE;
       }
 
       _set_duration0 (GES_TIMELINE_ELEMENT (track_element), duration);