camerabin: set videotestsrc pattern to white in unit test

Lower complexity of encoding and videotestsrc redrawing in order
to prevent unit test timeouts.
This commit is contained in:
Lasse Laukkanen 2009-10-21 18:02:27 +03:00 committed by Thiago Santos
parent 2c4417dabc
commit 3b788bac25

View file

@ -131,7 +131,8 @@ setup_camerabin_elements (GstElement * camera)
audiosrc = gst_element_factory_make ("audiotestsrc", NULL);
g_object_set (audiosrc, "is-live", TRUE, NULL);
videosrc = gst_element_factory_make ("videotestsrc", NULL);
g_object_set (videosrc, "is-live", TRUE, NULL);
/* Set pattern to white (3) to avoid timeouts */
g_object_set (videosrc, "is-live", TRUE, "pattern", 3, NULL);
audioenc = gst_element_factory_make ("capsfilter", NULL);
audiocaps = gst_caps_from_string ("audio/x-raw-int");
g_object_set (audioenc, "caps", audiocaps, NULL);