mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 05:31:15 +00:00
TimelineSource: Implenent _create_track_object() virtual-method
This commit is contained in:
parent
246599e2f6
commit
02e1f3910d
2 changed files with 18 additions and 0 deletions
|
@ -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 ();
|
||||
}
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
#include <glib-object.h>
|
||||
#include <ges/ges-types.h>
|
||||
#include <ges/ges-timeline-object.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
|
|
Loading…
Reference in a new issue