Skip to content

Commit

Permalink
better assert message
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@26900 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jul 6, 2020
1 parent 87856be commit 64c59c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xpra/client/window_backing_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,8 @@ def paint_with_video_decoder(self, decoder_module, coding, img_data, x, y, width
return
#do we need a prep step for decoders that cannot handle the input_colorspace directly?
decoder_colorspaces = decoder_module.get_input_colorspaces(coding)
assert input_colorspace in decoder_colorspaces, "decoder does not support %s for %s" % (input_colorspace, coding)
assert input_colorspace in decoder_colorspaces, "decoder %s does not support %s for %s" % (
decoder_module.get_type(), input_colorspace, coding)

vd = self._video_decoder
if vd:
Expand Down

0 comments on commit 64c59c9

Please sign in to comment.