mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
2c4417dabc
commit
3b788bac25
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue