summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <edward@centricular.com>2017-04-04 14:52:17 +0200
committerEdward Hervey <bilboed@bilboed.com>2017-04-04 14:53:30 +0200
commit330ae663dc0df8e2a77f64c6dc3100f95dadeb7f (patch)
treeaa9c32a6ad58ea0fcc3856e5e226859a26164978
parentd5da8682b27384197798c769b0c482b23c7185e3 (diff)
validate: Improve video fakesink properties
Try to emulate a bit better a real video sink by making the video fakesink handle/calculate/report QoS. Also use the same lateness value as default videosink
-rw-r--r--validate/launcher/apps/gstvalidate.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/validate/launcher/apps/gstvalidate.py b/validate/launcher/apps/gstvalidate.py
index 8f52019..f92491b 100644
--- a/validate/launcher/apps/gstvalidate.py
+++ b/validate/launcher/apps/gstvalidate.py
@@ -215,11 +215,10 @@ class GstValidatePipelineTestsGenerator(GstValidateTestsGenerator):
if self.test_manager.options.mute:
if scenario and scenario.needs_clock_sync():
- fakesink = "fakesink sync=true"
+ audiosink = "fakesink sync=true"
+ videosink = "fakesink sync=true qos=true max-lateness=20000000"
else:
- fakesink = "fakesink"
-
- audiosink = videosink = fakesink
+ audiosink = videosink = "fakesink"
else:
audiosink = 'autoaudiosink'
videosink = 'autovideosink'
@@ -267,12 +266,13 @@ class GstValidatePlaybinTestsGenerator(GstValidatePipelineTestsGenerator):
if self.test_manager.options.mute:
if scenario.needs_clock_sync() or \
minfo.media_descriptor.need_clock_sync():
- fakesink = "'fakesink sync=true'"
+ afakesink = "'fakesink sync=true'"
+ vfakesink = "'fakesink sync=true qos=true max-lateness=20000000'"
else:
- fakesink = "'fakesink'"
+ vfakesink = afakesink = "'fakesink'"
cpipe += " audio-sink=%s video-sink=%s" % (
- fakesink, fakesink)
+ afakesink, vfakesink)
fname = "%s.%s" % (self.get_fname(scenario,
protocol),