timeline: Setting duration to the same value is valid

And should not be advertised as if the operation failed.
This commit is contained in:
Thibault Saunier 2019-02-08 17:43:34 -03:00 committed by Thibault Saunier
parent 22ae41e984
commit 100276d02a

View 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);