Skip to content

Commit

Permalink
don't import unless needed
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jan 24, 2025
1 parent 6b4f63b commit d43630d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpra/server/source/encodings.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,11 +407,11 @@ def print_encoding_info(self) -> None:

def parse_proxy_video(self) -> None:
self.wait_for_threaded_init()
from xpra.codecs.proxy.encoder import Encoder # pylint: disable=import-outside-toplevel
proxy_video_encodings = self.encoding_options.get("proxy.video.encodings")
proxylog("parse_proxy_video() proxy.video.encodings=%s", proxy_video_encodings)
if not proxy_video_encodings:
return
from xpra.codecs.proxy.encoder import Encoder # pylint: disable=import-outside-toplevel
cloned = False
for encoding, colorspace_specs in proxy_video_encodings.items():
for colorspace, spec_props in colorspace_specs.items():
Expand Down

0 comments on commit d43630d

Please sign in to comment.