mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 22:16:22 +00:00
timelineobject: Make the 'position' argument of the split method a guint64 not gin64
This makes more sense to be a guint64 as it actually is a GstClockTime, and this way we keep the API concistent. (This code has not been release so we can still change the API.)
This commit is contained in:
parent
f6c060b3fb
commit
beae7dbd34
3 changed files with 6 additions and 4 deletions
|
@ -1153,7 +1153,7 @@
|
||||||
(c-name "ges_timeline_object_split")
|
(c-name "ges_timeline_object_split")
|
||||||
(return-type "GESTimelineObject*")
|
(return-type "GESTimelineObject*")
|
||||||
(parameters
|
(parameters
|
||||||
'("gint64" "position")
|
'("guint64" "position")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1307,7 +1307,8 @@ ges_timeline_object_set_top_effect_priority (GESTimelineObject * object,
|
||||||
/**
|
/**
|
||||||
* ges_timeline_object_split:
|
* ges_timeline_object_split:
|
||||||
* @object: the #GESTimelineObject to split
|
* @object: the #GESTimelineObject to split
|
||||||
* @position: The position at which to split the @object (in nanosecond)
|
* @position: a #GstClockTime representing the position at which to split
|
||||||
|
* @object
|
||||||
*
|
*
|
||||||
* The function modifies @object, and creates another #GESTimelineObject so
|
* The function modifies @object, and creates another #GESTimelineObject so
|
||||||
* we have two clips at the end, splitted at the time specified by @position.
|
* we have two clips at the end, splitted at the time specified by @position.
|
||||||
|
@ -1318,7 +1319,7 @@ ges_timeline_object_set_top_effect_priority (GESTimelineObject * object,
|
||||||
* Since: 0.10.XX
|
* Since: 0.10.XX
|
||||||
*/
|
*/
|
||||||
GESTimelineObject *
|
GESTimelineObject *
|
||||||
ges_timeline_object_split (GESTimelineObject * object, gint64 position)
|
ges_timeline_object_split (GESTimelineObject * object, guint64 position)
|
||||||
{
|
{
|
||||||
GList *tmp;
|
GList *tmp;
|
||||||
gboolean locked;
|
gboolean locked;
|
||||||
|
@ -1328,6 +1329,7 @@ ges_timeline_object_split (GESTimelineObject * object, gint64 position)
|
||||||
GstClockTime start, inpoint, duration;
|
GstClockTime start, inpoint, duration;
|
||||||
|
|
||||||
g_return_val_if_fail (GES_IS_TIMELINE_OBJECT (object), NULL);
|
g_return_val_if_fail (GES_IS_TIMELINE_OBJECT (object), NULL);
|
||||||
|
g_return_val_if_fail (GST_CLOCK_TIME_IS_VALID (position), NULL);
|
||||||
|
|
||||||
priv = object->priv;
|
priv = object->priv;
|
||||||
|
|
||||||
|
|
|
@ -298,7 +298,7 @@ ges_timeline_object_set_supported_formats (GESTimelineObject * object,
|
||||||
GESTrackType supportedformats);
|
GESTrackType supportedformats);
|
||||||
|
|
||||||
GESTimelineObject *
|
GESTimelineObject *
|
||||||
ges_timeline_object_split (GESTimelineObject * object, gint64 position);
|
ges_timeline_object_split (GESTimelineObject * object, guint64 position);
|
||||||
|
|
||||||
void
|
void
|
||||||
ges_timeline_object_objects_set_locked (GESTimelineObject * object, gboolean locked);
|
ges_timeline_object_objects_set_locked (GESTimelineObject * object, gboolean locked);
|
||||||
|
|
Loading…
Reference in a new issue