mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
override create_track_objects (plural) in TimelineSource
This commit is contained in:
parent
3cd0444b21
commit
4683b042f6
1 changed files with 22 additions and 0 deletions
|
@ -35,6 +35,10 @@ static GESTrackObject
|
|||
* ges_timeline_source_create_track_object (GESTimelineObject * obj,
|
||||
GESTrack * track);
|
||||
|
||||
static gboolean
|
||||
ges_timeline_source_create_track_objects (GESTimelineObject * obj,
|
||||
GESTrack * track);
|
||||
|
||||
static void
|
||||
ges_timeline_source_get_property (GObject * object, guint property_id,
|
||||
GValue * value, GParamSpec * pspec)
|
||||
|
@ -79,6 +83,8 @@ ges_timeline_source_class_init (GESTimelineSourceClass * klass)
|
|||
object_class->finalize = ges_timeline_source_finalize;
|
||||
|
||||
timobj_class->create_track_object = ges_timeline_source_create_track_object;
|
||||
|
||||
timobj_class->create_track_objects = ges_timeline_source_create_track_objects;
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -100,3 +106,19 @@ ges_timeline_source_create_track_object (GESTimelineObject * obj,
|
|||
/* FIXME : Implement properly ! */
|
||||
return (GESTrackObject *) ges_track_source_new ();
|
||||
}
|
||||
|
||||
static gboolean
|
||||
ges_timeline_source_create_track_objects (GESTimelineObject * obj,
|
||||
GESTrack * track)
|
||||
{
|
||||
GESTrackObject *primary;
|
||||
|
||||
/* calls add_track_object() for us. we already own this reference */
|
||||
primary = ges_timeline_object_create_track_object (obj, track);
|
||||
if (!primary) {
|
||||
GST_WARNING ("couldn't create primary track object");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return ges_track_add_object (track, primary);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue