set supported formats in new unit test

This commit is contained in:
Brandon Lewis 2010-08-09 13:27:25 +02:00 committed by Edward Hervey
parent f9bb4b274c
commit c07097f6bb

View file

@ -157,6 +157,8 @@ GST_START_TEST (test_filesource_images)
ges_init ();
tfs = ges_timeline_filesource_new ((gchar *) TEST_URI);
g_object_set (G_OBJECT (tfs), "supported-formats",
(GESTrackType) GES_TRACK_TYPE_AUDIO | GES_TRACK_TYPE_VIDEO, NULL);
tlobj = GES_TIMELINE_OBJECT (tfs);
a = ges_track_audio_raw_new ();
@ -172,7 +174,7 @@ GST_START_TEST (test_filesource_images)
ges_track_remove_object (v, trobj);
ges_timeline_object_release_track_object (tlobj, trobj);
/* the timeline object should not create an audio source with is-image set
/* the timeline object should not create an audio source when is-image is set
* to true */
trobj = ges_timeline_object_create_track_object (tlobj, a);