From: Lasse Laukkanen Date: Wed, 21 Oct 2009 15:02:27 +0000 (+0300) Subject: camerabin: set videotestsrc pattern to white in unit test X-Git-Tag: 1.19.3~507^2~17200 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3b788bac2540ecf3dfd6873a1d64a4e35f5b47e7;p=platform%2Fupstream%2Fgstreamer.git camerabin: set videotestsrc pattern to white in unit test Lower complexity of encoding and videotestsrc redrawing in order to prevent unit test timeouts. --- diff --git a/tests/check/elements/camerabin.c b/tests/check/elements/camerabin.c index 1b1dbef343..8af32339aa 100644 --- a/tests/check/elements/camerabin.c +++ b/tests/check/elements/camerabin.c @@ -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);