mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-05 10:12:20 +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;
|
newindex = newindex + min_prio;
|
||||||
/* We don't change the priority */
|
/* We don't change the priority */
|
||||||
if (current_prio == newindex ||
|
if (current_prio == newindex)
|
||||||
(G_UNLIKELY (GES_CLIP (GES_TIMELINE_ELEMENT_PARENT (track_element)) !=
|
return TRUE;
|
||||||
clip)))
|
|
||||||
|
if (G_UNLIKELY (GES_CLIP (GES_TIMELINE_ELEMENT_PARENT (track_element)) !=
|
||||||
|
clip))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (newindex > (clip->priv->nb_effects - 1 + min_prio)) {
|
if (newindex > (clip->priv->nb_effects - 1 + min_prio)) {
|
||||||
|
|
Loading…
Reference in a new issue