mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
validate: Remove protocol-specific timeouts
Since we now check position/status of pipeline at regular intevals, we no longer need to impose a different timeout based on the protocol used. Avoids having 4min long timeouts for no reason (30s is enough)
This commit is contained in:
parent
92285ef261
commit
01a54641f9
1 changed files with 1 additions and 22 deletions
|
@ -68,10 +68,6 @@ Some info about protocols and how to handle them
|
|||
"""
|
||||
GST_VALIDATE_CAPS_TO_PROTOCOL = [("application/x-hls", Protocols.HLS),
|
||||
("application/dash+xml", Protocols.DASH)]
|
||||
GST_VALIDATE_PROTOCOL_TIMEOUTS = {Protocols.HTTP: 120,
|
||||
Protocols.HLS: 240,
|
||||
Protocols.RTSP: 240,
|
||||
Protocols.DASH: 240}
|
||||
|
||||
|
||||
class GstValidateMediaCheckTestsGenerator(GstValidateTestsGenerator):
|
||||
|
@ -82,10 +78,7 @@ class GstValidateMediaCheckTestsGenerator(GstValidateTestsGenerator):
|
|||
def populate_tests(self, uri_minfo_special_scenarios, scenarios):
|
||||
for uri, mediainfo, special_scenarios in uri_minfo_special_scenarios:
|
||||
protocol = mediainfo.media_descriptor.get_protocol()
|
||||
try:
|
||||
timeout = GST_VALIDATE_PROTOCOL_TIMEOUTS[protocol]
|
||||
except KeyError:
|
||||
timeout = DEFAULT_TIMEOUT
|
||||
timeout = DEFAULT_TIMEOUT
|
||||
|
||||
classname = "%s.media_check.%s" % (protocol,
|
||||
os.path.basename(url2path(uri)).replace(".", "_"))
|
||||
|
@ -447,14 +440,6 @@ class GstValidateLaunchTest(GstValidateTest):
|
|||
|
||||
extra_env_variables = extra_env_variables or {}
|
||||
|
||||
try:
|
||||
timeout = GST_VALIDATE_PROTOCOL_TIMEOUTS[
|
||||
media_descriptor.get_protocol()]
|
||||
except KeyError:
|
||||
pass
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
if scenario:
|
||||
duration = scenario.get_duration()
|
||||
elif media_descriptor:
|
||||
|
@ -527,12 +512,6 @@ class GstValidateTranscodingTest(GstValidateTest, GstValidateEncodingTestInterfa
|
|||
else:
|
||||
duration = file_dur
|
||||
|
||||
try:
|
||||
timeout = GST_VALIDATE_PROTOCOL_TIMEOUTS[
|
||||
media_descriptor.get_protocol()]
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
super(
|
||||
GstValidateTranscodingTest, self).__init__(GST_VALIDATE_TRANSCODING_COMMAND,
|
||||
classname,
|
||||
|
|
Loading…
Reference in a new issue