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)
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

index 39fd751..0d3080b 100644 (file)
@@ -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");