splitmux: Make the unit test faster
authorJan Schmidt <jan@centricular.com>
Mon, 23 Mar 2020 13:18:54 +0000 (00:18 +1100)
committerSebastian Dröge <slomo@coaxion.net>
Thu, 26 Mar 2020 11:23:24 +0000 (11:23 +0000)
The playback test is considerably faster if it runs with the
appsink set to sync=false

tests/check/elements/splitmux.c

index 25740e7..04c352c 100644 (file)
@@ -231,6 +231,8 @@ test_playback (const gchar * in_pattern, GstClockTime exp_first_time,
 
   appsink = gst_element_factory_make ("appsink", NULL);
   fail_if (appsink == NULL);
+  g_object_set (G_OBJECT (appsink), "sync", FALSE, NULL);
+
   g_object_set (G_OBJECT (pipeline), "video-sink", appsink, NULL);
   fakesink2 = gst_element_factory_make ("fakesink", NULL);
   fail_if (fakesink2 == NULL);