mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 02:45:35 +00:00
clip: Return TRUE when the the effect index does not change
This commit is contained in:
parent
547a340629
commit
5e008dbc77
1 changed files with 5 additions and 3 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue