mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 23:48:53 +00:00
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.
This commit is contained in:
parent
9a04ba5000
commit
b1f22e7130
1 changed files with 1 additions and 1 deletions
|
@ -737,7 +737,7 @@ class GstValidateTest(Test):
|
||||||
if self._sent_eos_time is not None:
|
if self._sent_eos_time is not None:
|
||||||
t = time.time()
|
t = time.time()
|
||||||
if ((t - self._sent_eos_time)) > 30:
|
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:
|
||||||
self.set_result(Result.PASSED,
|
self.set_result(Result.PASSED,
|
||||||
"""Got no EOS 30 seconds after sending EOS,
|
"""Got no EOS 30 seconds after sending EOS,
|
||||||
in HLS known and tolerated issue:
|
in HLS known and tolerated issue:
|
||||||
|
|
Loading…
Reference in a new issue