mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 05:38:58 +00:00
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
This commit is contained in:
parent
d5da8682b2
commit
330ae663dc
1 changed files with 7 additions and 7 deletions
|
@ -215,11 +215,10 @@ class GstValidatePipelineTestsGenerator(GstValidateTestsGenerator):
|
||||||
|
|
||||||
if self.test_manager.options.mute:
|
if self.test_manager.options.mute:
|
||||||
if scenario and scenario.needs_clock_sync():
|
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:
|
else:
|
||||||
fakesink = "fakesink"
|
audiosink = videosink = "fakesink"
|
||||||
|
|
||||||
audiosink = videosink = fakesink
|
|
||||||
else:
|
else:
|
||||||
audiosink = 'autoaudiosink'
|
audiosink = 'autoaudiosink'
|
||||||
videosink = 'autovideosink'
|
videosink = 'autovideosink'
|
||||||
|
@ -267,12 +266,13 @@ class GstValidatePlaybinTestsGenerator(GstValidatePipelineTestsGenerator):
|
||||||
if self.test_manager.options.mute:
|
if self.test_manager.options.mute:
|
||||||
if scenario.needs_clock_sync() or \
|
if scenario.needs_clock_sync() or \
|
||||||
minfo.media_descriptor.need_clock_sync():
|
minfo.media_descriptor.need_clock_sync():
|
||||||
fakesink = "'fakesink sync=true'"
|
afakesink = "'fakesink sync=true'"
|
||||||
|
vfakesink = "'fakesink sync=true qos=true max-lateness=20000000'"
|
||||||
else:
|
else:
|
||||||
fakesink = "'fakesink'"
|
vfakesink = afakesink = "'fakesink'"
|
||||||
|
|
||||||
cpipe += " audio-sink=%s video-sink=%s" % (
|
cpipe += " audio-sink=%s video-sink=%s" % (
|
||||||
fakesink, fakesink)
|
afakesink, vfakesink)
|
||||||
|
|
||||||
fname = "%s.%s" % (self.get_fname(scenario,
|
fname = "%s.%s" % (self.get_fname(scenario,
|
||||||
protocol),
|
protocol),
|
||||||
|
|
Loading…
Reference in a new issue