mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 08:08:22 +00:00
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:
parent
2df711cd60
commit
133e8ec94a
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue