tests/check/ges/{simplelayer.c,transition.c}: create audio tracks in demos
authorBrandon Lewis <brandon.lewis@collabora.co.uk>
Mon, 31 May 2010 13:42:23 +0000 (15:42 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Wed, 9 Jun 2010 09:28:09 +0000 (11:28 +0200)
tests/check/ges/simplelayer.c
tests/examples/transition.c

index 51387df583134a31935b34ab4fac00076282fe10..13050bffe74429f03da5c4e697cfb070101e4e2e 100644 (file)
@@ -184,11 +184,13 @@ GST_START_TEST (test_gsl_with_transitions)
   fail_unless (ges_timeline_add_layer (timeline, layer));
   ges_timeline_layer_set_priority (layer, 0);
 
-  /* FIXME: only testing video, since this is the only thing implemented */
-
   track = ges_track_new (GES_TRACK_TYPE_VIDEO, GST_CAPS_ANY);
   fail_unless (ges_timeline_add_track (timeline, track));
 
+  track = ges_track_new (GES_TRACK_TYPE_AUDIO, GST_CAPS_ANY);
+  fail_unless (ges_timeline_add_track (timeline, track));
+
+
 #define ELEMENT "videotestsrc"
 
   /* Create four 1s sources */
index 74f57f0ff7ed49cb8f072eb673039fca63ca2a15..2dd5c903cac016fc4af8591e48da2bb0048bc4c8 100644 (file)
@@ -69,7 +69,7 @@ make_timeline (char *nick, double tdur, char *patha, float adur,
     char *pathb, float bdur)
 {
   GESTimeline *timeline;
-  GESTrack *trackv;
+  GESTrack *trackv, *tracka;
   GESTimelineLayer *layer1;
   GESTimelineObject *srca, *srcb;
   GESTimelinePipeline *pipeline = ges_timeline_pipeline_new ();
@@ -82,6 +82,9 @@ make_timeline (char *nick, double tdur, char *patha, float adur,
   trackv = ges_track_video_raw_new ();
   ges_timeline_add_track (timeline, trackv);
 
+  tracka = ges_track_audio_raw_new ();
+  ges_timeline_add_track (timeline, tracka);
+
   layer1 = GES_TIMELINE_LAYER (ges_timeline_layer_new ());
   g_object_set (layer1, "priority", (gint32) 0, NULL);