diff options
author | Alexandru Băluț <alexandru.balut@gmail.com> | 2019-04-17 23:51:13 +0200 |
---|---|---|
committer | Thibault Saunier <tsaunier@gnome.org> | 2019-04-17 21:56:21 +0000 |
commit | 5e008dbc778087c5f8c186c8869815f54a727c5b (patch) | |
tree | 6d5cb63ceade6c622792f72b1c1ca9feb0cdd7b1 | |
parent | 547a340629d72a3c432e9308deb4c6073fb1b00c (diff) |
clip: Return TRUE when the the effect index does not change
-rw-r--r-- | ges/ges-clip.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ges/ges-clip.c b/ges/ges-clip.c index 3809b516..88f38bc2 100644 --- a/ges/ges-clip.c +++ b/ges/ges-clip.c @@ -1276,9 +1276,11 @@ ges_clip_set_top_effect_index (GESClip * clip, GESBaseEffect * effect, newindex = newindex + min_prio; /* We don't change the priority */ - if (current_prio == newindex || - (G_UNLIKELY (GES_CLIP (GES_TIMELINE_ELEMENT_PARENT (track_element)) != - clip))) + if (current_prio == newindex) + return TRUE; + + if (G_UNLIKELY (GES_CLIP (GES_TIMELINE_ELEMENT_PARENT (track_element)) != + clip)) return FALSE; if (newindex > (clip->priv->nb_effects - 1 + min_prio)) { |