Skip to content

Commit

Permalink
invalid (unused) arguments from one-shot 'decompress' call
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Sep 6, 2024
1 parent faf5645 commit f847c83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpra/codecs/nvidia/nvdec/decoder.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ def download_from_gpu(buf, size_t size) -> MemBuf:
return pixels


def decompress(encoding: str, img_data, width: int, height: int, rgb_format: str, options=None) -> ImageWrapper:
def decompress(encoding: str, img_data, width: int, height: int, options=None) -> ImageWrapper:
#decompress using the default device,
#and download the pixel data from the GPU:
dev = get_default_device_context()
Expand All @@ -821,7 +821,7 @@ def decompress(encoding: str, img_data, width: int, height: int, rgb_format: str
if not stream:
stream = Stream()
options["stream"] = stream
return decompress_and_download(encoding, img_data, rgb_format, options)
return decompress_and_download(encoding, img_data, width, height, options)


def decompress_and_download(encoding: str, img_data, width: int, height: int, options=None) -> ImageWrapper:
Expand Down

0 comments on commit f847c83

Please sign in to comment.