mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-09-03 10:43:55 +00:00
validate:launcher: Avoid using not yet set variables
And make the file pep8 compliant with latest pep8 checker.
This commit is contained in:
parent
4bb2648154
commit
9ab1d3b6fb
1 changed files with 8 additions and 6 deletions
|
@ -183,7 +183,6 @@ class GstValidatePipelineTestsGenerator(GstValidateTestsGenerator):
|
||||||
name = os.path.basename(json_file).replace('.json', '')
|
name = os.path.basename(json_file).replace('.json', '')
|
||||||
pipelines_descriptions = []
|
pipelines_descriptions = []
|
||||||
for test_name, defs in descriptions.items():
|
for test_name, defs in descriptions.items():
|
||||||
desc = [test_name]
|
|
||||||
pipeline = defs['pipeline']
|
pipeline = defs['pipeline']
|
||||||
scenarios = []
|
scenarios = []
|
||||||
for scenario in defs['scenarios']:
|
for scenario in defs['scenarios']:
|
||||||
|
@ -246,8 +245,11 @@ class GstValidatePipelineTestsGenerator(GstValidateTestsGenerator):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if self.test_manager.options.mute:
|
if self.test_manager.options.mute:
|
||||||
audiosink = self.get_fakesink_for_media_type("audio", needs_clock)
|
needs_clock = scenario.needs_clock_sync()
|
||||||
videosink = self.get_fakesink_for_media_type("video", needs_clock)
|
audiosink = self.get_fakesink_for_media_type(
|
||||||
|
"audio", needs_clock)
|
||||||
|
videosink = self.get_fakesink_for_media_type(
|
||||||
|
"video", needs_clock)
|
||||||
else:
|
else:
|
||||||
audiosink = 'autoaudiosink'
|
audiosink = 'autoaudiosink'
|
||||||
videosink = 'autovideosink'
|
videosink = 'autovideosink'
|
||||||
|
@ -427,7 +429,7 @@ class GstValidateMixerTestsGenerator(GstValidatePipelineTestsGenerator):
|
||||||
|
|
||||||
if self.test_manager.options.mute:
|
if self.test_manager.options.mute:
|
||||||
pipe_arguments["sink"] = self.get_fakesink_for_media_type(self.media_type,
|
pipe_arguments["sink"] = self.get_fakesink_for_media_type(self.media_type,
|
||||||
scenario.needs_clock_sync())
|
scenario.needs_clock_sync())
|
||||||
else:
|
else:
|
||||||
pipe_arguments["sink"] = "auto%ssink" % self.media_type
|
pipe_arguments["sink"] = "auto%ssink" % self.media_type
|
||||||
|
|
||||||
|
@ -944,8 +946,8 @@ not been tested and explicitely activated if you set use --wanted-tests ALL""")
|
||||||
uri = test.media_descriptor.get_uri()
|
uri = test.media_descriptor.get_uri()
|
||||||
|
|
||||||
if protocol in [Protocols.HTTP, Protocols.HLS, Protocols.DASH] and \
|
if protocol in [Protocols.HTTP, Protocols.HLS, Protocols.DASH] and \
|
||||||
("127.0.0.1:%s" % (self.options.http_server_port) in uri or
|
("127.0.0.1:%s" % (
|
||||||
"127.0.0.1:8079" in uri):
|
self.options.http_server_port) in uri or "127.0.0.1:8079" in uri):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue