validate: Use proper sink and give them good names
authorThibault Saunier <tsaunier@igalia.com>
Sun, 23 Jun 2019 17:03:04 +0000 (13:03 -0400)
committerThibault Saunier <tsaunier@igalia.com>
Fri, 5 Jul 2019 22:30:41 +0000 (18:30 -0400)
tests/validate/geslaunch.py

index ef7c345..a6d2eae 100644 (file)
@@ -150,7 +150,15 @@ class GESTest(GstValidateTest):
         GstValidateTest.build_arguments(self)
 
         if self.options.mute:
-            self.add_arguments("--mute")
+            needs_clock = self.scenario.needs_clock_sync() \
+                if self.scenario else False
+            audiosink = utils.get_fakesink_for_media_type("audio", needs_clock)
+            videosink = utils.get_fakesink_for_media_type("video", needs_clock)
+        else:
+            audiosink = 'autoaudiosink'
+            videosink = 'autovideosink'
+        self.add_arguments("--videosink", videosink + " name=videosink")
+        self.add_arguments("--audiosink", audiosink + " name=audiosink")
 
         self.set_sample_paths()