From 65ec4317a663a56af93890f4b76d48b7fea76ccf Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 27 Nov 2023 22:38:21 +0700 Subject: [PATCH] avoid missing property warnings with 'autoaudiosrc' --- xpra/audio/src.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/xpra/audio/src.py b/xpra/audio/src.py index 4f9c8ef822..1d91441ac7 100755 --- a/xpra/audio/src.py +++ b/xpra/audio/src.py @@ -197,12 +197,14 @@ def get_info(self) -> Dict[str,Any]: v = self.src.get_property(x) if v>=0: info[x] = v - info["src"] = self.get_element_properties( - self.src, - "actual-buffer-time", "actual-latency-time", - "buffer-time", "latency-time", - "provide-clock", - ) + if self.src_type != "autoaudiosrc": + info["src"] = self.get_element_properties( + self.src, + "actual-buffer-time", "actual-latency-time", + "buffer-time", "latency-time", + "provide-clock", + ) + info["src"]["type"] = self.src_type return info