From 831464d96fe100e2d8a4feecd4e23893c53aa9c0 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 22 Jun 2017 15:26:08 -0400 Subject: [PATCH] validate:launcher: Avoid useless and expensive deep copies --- validate/launcher/apps/gstvalidate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/validate/launcher/apps/gstvalidate.py b/validate/launcher/apps/gstvalidate.py index 42e20e0..4c264b5 100644 --- a/validate/launcher/apps/gstvalidate.py +++ b/validate/launcher/apps/gstvalidate.py @@ -332,8 +332,8 @@ class GstValidatePlaybinTestsGenerator(GstValidatePipelineTestsGenerator): ) if test_rtsp and protocol == Protocols.FILE and not minfo.media_descriptor.is_image(): - rtspminfo = copy.deepcopy(minfo) - rtspminfo.media_descriptor = GstValidateRTSPMediaDesciptor(minfo.media_descriptor.get_path()) + rtspminfo = NamedDic({"path": minfo.media_descriptor.get_path(), + "media_descriptor": GstValidateRTSPMediaDesciptor(minfo.media_descriptor.get_path())}) if not rtspminfo.media_descriptor.is_compatible(scenario): continue -- 2.7.4