diff options
author | Jonas Holmberg <jonashg@axis.com> | 2013-04-12 11:50:53 +0200 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2013-04-12 11:06:49 +0100 |
commit | 4ff3972aa7393ae0b9384f7757ec6311343e35aa (patch) | |
tree | e34d9f84835e618e1502099f61166c1a06a46cc6 | |
parent | 52d269b6b19e1eb46a8b41a13f58e4ffb6692097 (diff) |
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.
-rw-r--r-- | tests/check/elements/adder.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/check/elements/adder.c b/tests/check/elements/adder.c index 39fd7518a..0d3080b4b 100644 --- a/tests/check/elements/adder.c +++ b/tests/check/elements/adder.c @@ -587,8 +587,7 @@ GST_START_TEST (test_live_seeking) /* don't use autoaudiosrc, as then we can't set anything here */ const gchar *audio_src_factories[] = { "alsasrc", - "pulseaudiosrc", - NULL, + "pulseaudiosrc" }; GST_INFO ("preparing test"); |