+ Bind it in python
API: ges_timeline_get_duration
(return-type "gboolean")
)
+(define-method get_duration
+ (of-object "GESTimeline")
+ (c-name "ges_timeline_get_duration")
+ (return-type "guint64")
+)
+
;; From ges-timeline-layer.h
ges_timeline_get_tracks
ges_timeline_get_layers
ges_timeline_get_track_for_pad
+ges_timeline_get_duration
<SUBSECTION Standard>
GESTimelinePrivate
GESTimelineClass
return res;
}
+
+/**
+ * ges_timeline_get_duration
+ * @timeline: a #GESTimeline
+ *
+ * Get the current duration of @timeline
+ *
+ * Returns: The current duration of @timeline
+ */
+GstClockTime
+ges_timeline_get_duration (GESTimeline * timeline)
+{
+ g_return_val_if_fail (GES_IS_TIMELINE (timeline), GST_CLOCK_TIME_NONE);
+
+ return timeline->priv->duration;
+}
gboolean ges_timeline_enable_update(GESTimeline * timeline, gboolean enabled);
gboolean ges_timeline_is_updating (GESTimeline * timeline);
+GstClockTime ges_timeline_get_duration (GESTimeline *timeline);
+
G_END_DECLS
#endif /* _GES_TIMELINE */