diff --git a/ges/ges-timeline-source.c b/ges/ges-timeline-source.c index 8d0e115c50..746d5d4b86 100644 --- a/ges/ges-timeline-source.c +++ b/ges/ges-timeline-source.c @@ -20,10 +20,15 @@ #include "ges-internal.h" #include "ges-timeline-object.h" #include "ges-timeline-source.h" +#include "ges-track-source.h" G_DEFINE_TYPE (GESTimelineSource, ges_timeline_source, GES_TYPE_TIMELINE_OBJECT); +static GESTrackObject + * ges_timeline_source_create_track_object (GESTimelineObject * obj, + GESTrack * track); + static void ges_timeline_source_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) @@ -60,11 +65,14 @@ static void ges_timeline_source_class_init (GESTimelineSourceClass * klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); + GESTimelineObjectClass *timobj_class = GES_TIMELINE_OBJECT_CLASS (klass); object_class->get_property = ges_timeline_source_get_property; object_class->set_property = ges_timeline_source_set_property; object_class->dispose = ges_timeline_source_dispose; object_class->finalize = ges_timeline_source_finalize; + + timobj_class->create_track_object = ges_timeline_source_create_track_object; } static void @@ -77,3 +85,12 @@ ges_timeline_source_new (void) { return g_object_new (GES_TYPE_TIMELINE_SOURCE, NULL); } + +static GESTrackObject * +ges_timeline_source_create_track_object (GESTimelineObject * obj, + GESTrack * track) +{ + GST_DEBUG ("Creating a GESTrackSource"); + /* FIXME : Implement properly ! */ + return (GESTrackObject *) ges_track_source_new (); +} diff --git a/ges/ges-timeline-source.h b/ges/ges-timeline-source.h index b05826fcfa..a81dac5bc2 100644 --- a/ges/ges-timeline-source.h +++ b/ges/ges-timeline-source.h @@ -22,6 +22,7 @@ #include #include +#include G_BEGIN_DECLS