mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
ges: Misc fixes in ges-timeline-layer
Put the comment where they are meant to be Make static functions static Use LAYER_HEIGHT where needed
This commit is contained in:
parent
5021017904
commit
82974d9a9d
1 changed files with 14 additions and 15 deletions
|
@ -207,7 +207,7 @@ ges_timeline_layer_init (GESTimelineLayer * self)
|
|||
self->priv->priority = 0;
|
||||
self->priv->auto_transition = FALSE;
|
||||
self->min_gnl_priority = 0;
|
||||
self->max_gnl_priority = 9;
|
||||
self->max_gnl_priority = LAYER_HEIGHT;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -249,20 +249,6 @@ objects_start_compare (GESTimelineObject * a, GESTimelineObject * b)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* ges_timeline_layer_add_object:
|
||||
* @layer: a #GESTimelineLayer
|
||||
* @object: (transfer full): the #GESTimelineObject to add.
|
||||
*
|
||||
* Adds the given object to the layer. Sets the object's parent, and thus
|
||||
* takes ownership of the object.
|
||||
*
|
||||
* An object can only be added to one layer.
|
||||
*
|
||||
* Returns: TRUE if the object was properly added to the layer, or FALSE
|
||||
* if the @layer refuses to add the object.
|
||||
*/
|
||||
|
||||
static GList *
|
||||
track_get_by_layer (GESTimelineLayer * layer, GESTrack * track)
|
||||
{
|
||||
|
@ -285,6 +271,19 @@ track_get_by_layer (GESTimelineLayer * layer, GESTrack * track)
|
|||
return return_list;
|
||||
}
|
||||
|
||||
/**
|
||||
* ges_timeline_layer_add_object:
|
||||
* @layer: a #GESTimelineLayer
|
||||
* @object: (transfer full): the #GESTimelineObject to add.
|
||||
*
|
||||
* Adds the given object to the layer. Sets the object's parent, and thus
|
||||
* takes ownership of the object.
|
||||
*
|
||||
* An object can only be added to one layer.
|
||||
*
|
||||
* Returns: TRUE if the object was properly added to the layer, or FALSE
|
||||
* if the @layer refuses to add the object.
|
||||
*/
|
||||
gboolean
|
||||
ges_timeline_layer_add_object (GESTimelineLayer * layer,
|
||||
GESTimelineObject * object)
|
||||
|
|
Loading…
Reference in a new issue