mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
tests: avoid assert in adder test if no audio sources work
The array of factories should not contain a NULL element at the end since the number of arguments is determined via G_N_ELEMENTS and the NULL will be used as an argument to gst_element_factory_make() if the other sources in the list weren't usable.
This commit is contained in:
parent
52d269b6b1
commit
4ff3972aa7
1 changed files with 1 additions and 2 deletions
|
@ -587,8 +587,7 @@ GST_START_TEST (test_live_seeking)
|
||||||
/* don't use autoaudiosrc, as then we can't set anything here */
|
/* don't use autoaudiosrc, as then we can't set anything here */
|
||||||
const gchar *audio_src_factories[] = {
|
const gchar *audio_src_factories[] = {
|
||||||
"alsasrc",
|
"alsasrc",
|
||||||
"pulseaudiosrc",
|
"pulseaudiosrc"
|
||||||
NULL,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
GST_INFO ("preparing test");
|
GST_INFO ("preparing test");
|
||||||
|
|
Loading…
Reference in a new issue