GESTimelineObject: Properly set default duration

Set it in the instance_init to GST_SECOND, But let the subclasses override
it.
This allows subclasses to set a different default duration
This commit is contained in:
Edward Hervey 2010-05-19 12:19:37 +02:00
parent 2df711cd60
commit 133e8ec94a

View file

@ -144,7 +144,7 @@ ges_timeline_object_class_init (GESTimelineObjectClass * klass)
*/
g_object_class_install_property (object_class, PROP_DURATION,
g_param_spec_uint64 ("duration", "Duration", "The duration to use",
0, G_MAXUINT64, GST_SECOND, G_PARAM_READWRITE));
0, G_MAXUINT64, GST_CLOCK_TIME_NONE, 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));
@ -155,6 +155,7 @@ ges_timeline_object_class_init (GESTimelineObjectClass * klass)
static void
ges_timeline_object_init (GESTimelineObject * self)
{
self->duration = GST_SECOND;
}
/**