mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
timeline: fix layer priority argument in trim
Previously, we tested that the given priority was `>0`, when it seems that `>=0` was intended. A priority of `-1` means leave the priority unchanged, whilst a priority of 0, or more, means move to this layer priority.
This commit is contained in:
parent
bbff08f078
commit
a8458d59de
1 changed files with 2 additions and 2 deletions
|
@ -1140,9 +1140,9 @@ timeline_trim_object (GESTimeline * timeline, GESTimelineElement * object,
|
||||||
}
|
}
|
||||||
|
|
||||||
return timeline_tree_trim (timeline->priv->tree,
|
return timeline_tree_trim (timeline->priv->tree,
|
||||||
GES_TIMELINE_ELEMENT (object), new_layer_priority > 0 ? (gint64)
|
GES_TIMELINE_ELEMENT (object), new_layer_priority < 0 ? 0 : (gint64)
|
||||||
ges_timeline_element_get_layer_priority (GES_TIMELINE_ELEMENT (object)) -
|
ges_timeline_element_get_layer_priority (GES_TIMELINE_ELEMENT (object)) -
|
||||||
new_layer_priority : 0, edge == GES_EDGE_END ? GST_CLOCK_DIFF (position,
|
new_layer_priority, edge == GES_EDGE_END ? GST_CLOCK_DIFF (position,
|
||||||
_START (object) + _DURATION (object)) : GST_CLOCK_DIFF (position,
|
_START (object) + _DURATION (object)) : GST_CLOCK_DIFF (position,
|
||||||
GES_TIMELINE_ELEMENT_START (object)), edge,
|
GES_TIMELINE_ELEMENT_START (object)), edge,
|
||||||
timeline->priv->snapping_distance);
|
timeline->priv->snapping_distance);
|
||||||
|
|
Loading…
Reference in a new issue