camerabin: set videotestsrc pattern to white in unit test
authorLasse Laukkanen <ext-lasse.2.laukkanen@nokia.com>
Wed, 21 Oct 2009 15:02:27 +0000 (18:02 +0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Tue, 13 Apr 2010 15:00:32 +0000 (12:00 -0300)
Lower complexity of encoding and videotestsrc redrawing in order
to prevent unit test timeouts.

tests/check/elements/camerabin.c

index 1b1dbef343a15645d63211bb0ac37434fd3c3485..8af32339aa8925a9273764f590fc1080d4b09e35 100644 (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);