1 /* GStreamer Editing Services
2 * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
20 #include "ges-timeline-pipeline.h"
26 G_DEFINE_TYPE (GESTimelinePipeline, ges_timeline_pipeline, GST_TYPE_PIPELINE)
28 #define GET_PRIVATE(o) \
29 (G_TYPE_INSTANCE_GET_PRIVATE ((o), GEST_TYPE_TIMELINE_PIPELINE, GESTimelinePipelinePrivate))
31 typedef struct _GESTimelinePipelinePrivate GESTimelinePipelinePrivate;
33 struct _GESTimelinePipelinePrivate {
38 ges_timeline_pipeline_get_property (GObject *object, guint property_id,
39 GValue *value, GParamSpec *pspec)
41 switch (property_id) {
43 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
48 ges_timeline_pipeline_set_property (GObject *object, guint property_id,
49 const GValue *value, GParamSpec *pspec)
51 switch (property_id) {
53 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
58 ges_timeline_pipeline_dispose (GObject *object)
60 G_OBJECT_CLASS (ges_timeline_pipeline_parent_class)->dispose (object);
64 ges_timeline_pipeline_finalize (GObject *object)
66 G_OBJECT_CLASS (ges_timeline_pipeline_parent_class)->finalize (object);
70 ges_timeline_pipeline_class_init (GESTimelinePipelineClass *klass)
72 GObjectClass *object_class = G_OBJECT_CLASS (klass);
74 g_type_class_add_private (klass, sizeof (GESTimelinePipelinePrivate));
76 object_class->get_property = ges_timeline_pipeline_get_property;
77 object_class->set_property = ges_timeline_pipeline_set_property;
78 object_class->dispose = ges_timeline_pipeline_dispose;
79 object_class->finalize = ges_timeline_pipeline_finalize;
83 ges_timeline_pipeline_init (GESTimelinePipeline *self)
88 ges_timeline_pipeline_new (void)
90 return g_object_new (GEST_TYPE_TIMELINE_PIPELINE, NULL);