mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 15:18:21 +00:00
track: Add a getter for restriction_caps
This commit is contained in:
parent
f9d7fa36e0
commit
badede6d1c
2 changed files with 26 additions and 0 deletions
|
@ -1205,3 +1205,27 @@ ges_track_set_create_element_for_gap_func (GESTrack * track,
|
|||
|
||||
track->priv->create_element_for_gaps = func;
|
||||
}
|
||||
|
||||
/**
|
||||
* ges_track_get_restriction_caps:
|
||||
* @track: a #GESTrack
|
||||
*
|
||||
* Returns: (transfer full): The currently set restriction caps
|
||||
*
|
||||
* Since: 1.18
|
||||
*/
|
||||
GstCaps *
|
||||
ges_track_get_restriction_caps (GESTrack * track)
|
||||
{
|
||||
GESTrackPrivate *priv;
|
||||
|
||||
g_return_val_if_fail (GES_IS_TRACK (track), NULL);
|
||||
CHECK_THREAD (track);
|
||||
|
||||
priv = track->priv;
|
||||
|
||||
if (priv->restriction_caps)
|
||||
return gst_caps_ref (priv->restriction_caps);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
@ -105,6 +105,8 @@ GES_API
|
|||
void ges_track_set_restriction_caps (GESTrack *track, const GstCaps *caps);
|
||||
GES_API
|
||||
void ges_track_update_restriction_caps (GESTrack *track, const GstCaps *caps);
|
||||
GES_API
|
||||
GstCaps * ges_track_get_restriction_caps (GESTrack * track);
|
||||
|
||||
/* standard methods */
|
||||
GES_API
|
||||
|
|
Loading…
Reference in a new issue