validate:launcher: Fix getting skip-parser when generating media descriptor

On old version it didn't exist
This commit is contained in:
Thibault Saunier 2019-03-18 11:09:10 -03:00 committed by Thibault Saunier
parent 19dfd63408
commit 06b8f23a34

View file

@ -2376,7 +2376,7 @@ class GstValidateMediaDescriptor(MediaDescriptor):
media_xml = ET.parse(descriptor_path).getroot()
include_frames = bool(int(media_xml.attrib["frame-detection"]))
if bool(int(media_xml.attrib.get("skip-parsers"))):
if bool(int(media_xml.attrib.get("skip-parsers", 0))):
args.append("--skip-parsers")
except FileNotFoundError:
pass