mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-04 06:29:31 +00:00
timeline: Do not compare unsigned with 0
Layer priorities are always positive the check was making no sense in any case. Fixes CID: 1444922, 1461284
This commit is contained in:
parent
8f4688811f
commit
d81548a28a
1 changed files with 6 additions and 4 deletions
|
@ -1253,9 +1253,10 @@ timeline_trim_object (GESTimeline * timeline, GESTimelineElement * object,
|
|||
}
|
||||
|
||||
return timeline_tree_trim (timeline->priv->tree,
|
||||
GES_TIMELINE_ELEMENT (object), new_layer_priority < 0 ? 0 : (gint64)
|
||||
GES_TIMELINE_ELEMENT (object), (gint64)
|
||||
ges_timeline_element_get_layer_priority (GES_TIMELINE_ELEMENT (object)) -
|
||||
new_layer_priority, edge == GES_EDGE_END ? GST_CLOCK_DIFF (position,
|
||||
(gint64) new_layer_priority,
|
||||
edge == GES_EDGE_END ? GST_CLOCK_DIFF (position,
|
||||
_START (object) + _DURATION (object)) : GST_CLOCK_DIFF (position,
|
||||
GES_TIMELINE_ELEMENT_START (object)), edge,
|
||||
timeline->priv->snapping_distance);
|
||||
|
@ -1283,9 +1284,10 @@ timeline_move_object (GESTimeline * timeline, GESTimelineElement * object,
|
|||
GST_CLOCK_DIFF (position, GES_TIMELINE_ELEMENT_START (object));
|
||||
|
||||
ret = timeline_tree_move (timeline->priv->tree,
|
||||
GES_TIMELINE_ELEMENT (object), new_layer_priority < 0 ? 0 : (gint64)
|
||||
GES_TIMELINE_ELEMENT (object), (gint64)
|
||||
ges_timeline_element_get_layer_priority (GES_TIMELINE_ELEMENT (object)) -
|
||||
new_layer_priority, offset, edge, timeline->priv->snapping_distance);
|
||||
(gint64) new_layer_priority, offset, edge,
|
||||
timeline->priv->snapping_distance);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue