1 /* GStreamer Editing Services
2 * Copyright (C) 2010 Edward Hervey <edward.hervey@collabora.co.uk>
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.
22 * @short_description: Convenience methods
26 #include "gesmarshal.h"
27 #include "ges-internal.h"
28 #include "ges-timeline.h"
29 #include "ges-track.h"
30 #include "ges-timeline-layer.h"
34 * ges_timeline_new_audio_video:
36 * Creates a new #GESTimeline containing a raw audio and a
39 * Returns: (transfer full): The newly created #GESTimeline.
43 ges_timeline_new_audio_video (void)
45 GESTrack *tracka, *trackv;
46 GESTimeline *timeline;
48 /* This is our main GESTimeline */
49 timeline = ges_timeline_new ();
51 tracka = ges_track_audio_raw_new ();
52 trackv = ges_track_video_raw_new ();
54 if (!ges_timeline_add_track (timeline, trackv) ||
55 !ges_timeline_add_track (timeline, tracka)) {
56 g_object_unref (timeline);