mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
clip: Add an internal method to easily get the priority of the layer the clip is in
This commit is contained in:
parent
30eb9e4474
commit
12eebdabda
2 changed files with 10 additions and 0 deletions
|
@ -857,6 +857,15 @@ ges_clip_set_layer (GESClip * clip, GESLayer * layer)
|
|||
g_object_notify_by_pspec (G_OBJECT (clip), properties[PROP_LAYER]);
|
||||
}
|
||||
|
||||
guint32
|
||||
ges_clip_get_layer_priority (GESClip * clip)
|
||||
{
|
||||
if (clip->priv->layer == NULL)
|
||||
return -1;
|
||||
|
||||
return ges_layer_get_priority (clip->priv->layer);
|
||||
}
|
||||
|
||||
gboolean
|
||||
ges_clip_fill_track_element (GESClip * clip,
|
||||
GESTrackElement * trackelement, GstElement * gnlobj)
|
||||
|
|
|
@ -256,6 +256,7 @@ G_GNUC_INTERNAL void _ges_container_sort_children_by_end (GESContainer *contain
|
|||
****************************************************/
|
||||
void ges_clip_set_layer (GESClip *clip, GESLayer *layer);
|
||||
gboolean ges_clip_is_moving_from_layer (GESClip *clip);
|
||||
guint32 ges_clip_get_layer_priority (GESClip *clip);
|
||||
void ges_clip_set_moving_from_layer (GESClip *clip, gboolean is_moving);
|
||||
GESTrackElement* ges_clip_create_track_element (GESClip *clip, GESTrackType type);
|
||||
GList* ges_clip_create_track_elements (GESClip *clip, GESTrackType type);
|
||||
|
|
Loading…
Reference in a new issue