mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
validate:launcher: Avoid useless and expensive deep copies
This commit is contained in:
parent
8ea68e9e06
commit
831464d96f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue