Commit b1f22e71 authored by Guillaume Desmottes's avatar Guillaume Desmottes 🐐
Browse files

validate: fix crash if timeout when media_descriptor is None

Some tests may not have any media_descriptor. If those were failing to
shutdown after EOS we were calling get_protocol() on None.
parent 9a04ba50
Pipeline #12570 passed with stages
in 31 minutes and 50 seconds
......@@ -737,7 +737,7 @@ class GstValidateTest(Test):
if self._sent_eos_time is not None:
t = time.time()
if ((t - self._sent_eos_time)) > 30:
if self.media_descriptor.get_protocol() == Protocols.HLS:
if self.media_descriptor is not None and self.media_descriptor.get_protocol() == Protocols.HLS:
"""Got no EOS 30 seconds after sending EOS,
in HLS known and tolerated issue:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment