Skip to content

Commit

Permalink
gpu buffer may be none
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@19152 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed May 1, 2018
1 parent a422622 commit c119133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/codecs/nvenc/encoder.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2183,7 +2183,7 @@ cdef class Encoder:
h = image.get_height()
gpu_buffer = image.get_gpu_buffer()
stride = image.get_rowstride()
log("compress_image(%s, %s) kernel_name=%s, GPU buffer=%#x", image, options, self.kernel_name, int(gpu_buffer))
log("compress_image(%s, %s) kernel_name=%s, GPU buffer=%#x", image, options, self.kernel_name, int(gpu_buffer or 0))
assert image.get_planes()==ImageWrapper.PACKED, "invalid number of planes: %s" % image.get_planes()
assert (w & WIDTH_MASK)<=self.input_width, "invalid width: %s" % w
assert (h & HEIGHT_MASK)<=self.input_height, "invalid height: %s" % h
Expand Down

0 comments on commit c119133

Please sign in to comment.