diff --git a/ges/ges-clip.c b/ges/ges-clip.c index a5dad10d9e..dbf3a557ad 100644 --- a/ges/ges-clip.c +++ b/ges/ges-clip.c @@ -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) diff --git a/ges/ges-internal.h b/ges/ges-internal.h index 74451547be..ccdec6fc76 100644 --- a/ges/ges-internal.h +++ b/ges/ges-internal.h @@ -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);