tests: avoid assert in adder test if no audio sources work
authorJonas Holmberg <jonashg@axis.com>
Fri, 12 Apr 2013 09:50:53 +0000 (11:50 +0200)
committerTim-Philipp Müller <tim@centricular.net>
Fri, 12 Apr 2013 10:06:49 +0000 (11:06 +0100)
commit4ff3972aa7393ae0b9384f7757ec6311343e35aa
treee34d9f84835e618e1502099f61166c1a06a46cc6
parent52d269b6b19e1eb46a8b41a13f58e4ffb6692097
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.
tests/check/elements/adder.c