tests/check/ges/{simplelayer.c,transition.c}: create audio tracks in demos

This commit is contained in:
Brandon Lewis 2010-05-31 15:42:23 +02:00 committed by Edward Hervey
parent 812713cf2f
commit e0553dd63b
2 changed files with 8 additions and 3 deletions

View 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 */

View 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);