mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
validate:launcher: Handle missing media info file
This commit is contained in:
parent
79faf44d32
commit
a842f9d511
1 changed files with 4 additions and 1 deletions
|
@ -1889,7 +1889,10 @@ class GstValidateMediaDescriptor(MediaDescriptor):
|
||||||
if verbose:
|
if verbose:
|
||||||
printc("Result: Passed", Colors.OKGREEN)
|
printc("Result: Passed", Colors.OKGREEN)
|
||||||
|
|
||||||
return GstValidateMediaDescriptor(descriptor_path)
|
try:
|
||||||
|
return GstValidateMediaDescriptor(descriptor_path)
|
||||||
|
except FileNotFoundError:
|
||||||
|
return None
|
||||||
|
|
||||||
def get_path(self):
|
def get_path(self):
|
||||||
return self._xml_path
|
return self._xml_path
|
||||||
|
|
Loading…
Reference in a new issue