From e60bbe1102b4487a51edc46812056e23dd0c2459 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Fri, 7 Aug 2009 20:33:40 +0200 Subject: [PATCH] TrackObject: Add debugging and make default duration 1s --- ges/ges-track-object.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/ges/ges-track-object.c b/ges/ges-track-object.c index db6686fe34..01d4b0a6e3 100644 --- a/ges/ges-track-object.c +++ b/ges/ges-track-object.c @@ -128,7 +128,7 @@ ges_track_object_class_init (GESTrackObjectClass * klass) G_MAXUINT64, 0, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_DURATION, g_param_spec_uint64 ("duration", "Duration", "The duration to use", - 0, G_MAXUINT64, 0, G_PARAM_READWRITE)); + 0, G_MAXUINT64, GST_SECOND, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_PRIORITY, g_param_spec_uint ("priority", "Priority", "The priority of the object", 0, G_MAXUINT, 0, G_PARAM_READWRITE)); @@ -163,6 +163,9 @@ ges_track_object_set_start_internal (GESTrackObject * object, guint64 start) { g_return_val_if_fail (object->gnlobject, FALSE); + GST_DEBUG ("object:%p, start:%" GST_TIME_FORMAT, + object, GST_TIME_ARGS (start)); + if (G_UNLIKELY (start == object->start)) return FALSE; @@ -175,6 +178,9 @@ ges_track_object_set_inpoint_internal (GESTrackObject * object, guint64 inpoint) { guint64 dur; + GST_DEBUG ("object:%p, inpoint:%" GST_TIME_FORMAT, + object, GST_TIME_ARGS (inpoint)); + g_return_val_if_fail (object->gnlobject, FALSE); if (G_UNLIKELY (inpoint == object->inpoint)) @@ -192,6 +198,9 @@ gboolean ges_track_object_set_duration_internal (GESTrackObject * object, guint64 duration) { + GST_DEBUG ("object:%p, duration:%" GST_TIME_FORMAT, + object, GST_TIME_ARGS (duration)); + g_return_val_if_fail (object->gnlobject, FALSE); if (G_UNLIKELY (duration == object->duration)) @@ -206,6 +215,8 @@ gboolean ges_track_object_set_priority_internal (GESTrackObject * object, guint32 priority) { + GST_DEBUG ("object:%p, priority:%d", object, priority); + g_return_val_if_fail (object->gnlobject, FALSE); if (G_UNLIKELY (priority == object->priority)) -- 2.34.1