Skip to content

Commit

Permalink
avoid missing property warnings with 'autoaudiosrc'
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Nov 27, 2023
1 parent 540769c commit 65ec431
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions xpra/audio/src.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 65ec431

Please sign in to comment.