From: Jonas Holmberg Date: Fri, 12 Apr 2013 09:50:53 +0000 (+0200) Subject: tests: avoid assert in adder test if no audio sources work X-Git-Tag: 1.1.1~192 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ff3972aa7393ae0b9384f7757ec6311343e35aa;p=platform%2Fupstream%2Fgst-plugins-base.git 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. --- diff --git a/tests/check/elements/adder.c b/tests/check/elements/adder.c index 39fd751..0d3080b 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");