Skip to content

Commit

Permalink
shortcut out when we don't have nvidia decoders
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Sep 12, 2024
1 parent d8ea6b9 commit 4ead552
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xpra/client/gui/window_backing_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,8 @@ def nv_decode(self, encoding: str, img_data, width: int, height: int, options: t
return None
nvdec = self.nvdec_decoder
nvjpeg = self.nvjpeg_decoder
if not nvdec and not nvjpeg:
return None
try:
with self.assign_cuda_context(False):
if nvdec and encoding in nvdec.get_encodings():
Expand Down

0 comments on commit 4ead552

Please sign in to comment.