Initial code drop
[platform/upstream/gstreamer.git] / src / ges-track.c
1 /* GStreamer Editing Services
2  * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
3  *
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.
8  *
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.
13  *
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.
18  */
19
20 #include "ges-track.h"
21
22 /**
23  * GESTrack
24  *
25  * Corresponds to one output format (i.e. audio OR video)
26  *
27  * Contains the compatible TrackObject(s)
28  */
29
30 G_DEFINE_TYPE (GESTrack, ges_track, GST_TYPE_BIN)
31
32 #define GET_PRIVATE(o) \
33   (G_TYPE_INSTANCE_GET_PRIVATE ((o), GES_TYPE_TRACK, GESTrackPrivate))
34
35 typedef struct _GESTrackPrivate GESTrackPrivate;
36
37 struct _GESTrackPrivate {
38     int dummy;
39 };
40
41 static void
42 ges_track_get_property (GObject *object, guint property_id,
43                               GValue *value, GParamSpec *pspec)
44 {
45   switch (property_id) {
46   default:
47     G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
48   }
49 }
50
51 static void
52 ges_track_set_property (GObject *object, guint property_id,
53                               const GValue *value, GParamSpec *pspec)
54 {
55   switch (property_id) {
56   default:
57     G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
58   }
59 }
60
61 static void
62 ges_track_dispose (GObject *object)
63 {
64   G_OBJECT_CLASS (ges_track_parent_class)->dispose (object);
65 }
66
67 static void
68 ges_track_finalize (GObject *object)
69 {
70   G_OBJECT_CLASS (ges_track_parent_class)->finalize (object);
71 }
72
73 static void
74 ges_track_class_init (GESTrackClass *klass)
75 {
76   GObjectClass *object_class = G_OBJECT_CLASS (klass);
77
78   g_type_class_add_private (klass, sizeof (GESTrackPrivate));
79
80   object_class->get_property = ges_track_get_property;
81   object_class->set_property = ges_track_set_property;
82   object_class->dispose = ges_track_dispose;
83   object_class->finalize = ges_track_finalize;
84 }
85
86 static void
87 ges_track_init (GESTrack *self)
88 {
89 }
90
91 GESTrack*
92 ges_track_new (void)
93 {
94   return g_object_new (GES_TYPE_TRACK, NULL);
95 }
96