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:
Thibault Saunier 2012-04-20 19:22:56 -04:00
parent f6c060b3fb
commit beae7dbd34
3 changed files with 6 additions and 4 deletions

View file

@ -1153,7 +1153,7 @@
(c-name "ges_timeline_object_split")
(return-type "GESTimelineObject*")
(parameters
'("gint64" "position")
'("guint64" "position")
)
)

View file

@ -1307,7 +1307,8 @@ ges_timeline_object_set_top_effect_priority (GESTimelineObject * object,
/**
* ges_timeline_object_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
* 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
*/
GESTimelineObject *
ges_timeline_object_split (GESTimelineObject * object, gint64 position)
ges_timeline_object_split (GESTimelineObject * object, guint64 position)
{
GList *tmp;
gboolean locked;
@ -1328,6 +1329,7 @@ ges_timeline_object_split (GESTimelineObject * object, gint64 position)
GstClockTime start, inpoint, duration;
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;

View file

@ -298,7 +298,7 @@ ges_timeline_object_set_supported_formats (GESTimelineObject * object,
GESTrackType supportedformats);
GESTimelineObject *
ges_timeline_object_split (GESTimelineObject * object, gint64 position);
ges_timeline_object_split (GESTimelineObject * object, guint64 position);
void
ges_timeline_object_objects_set_locked (GESTimelineObject * object, gboolean locked);