Skip to content

Commit

Permalink
log csc error details
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@26958 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jul 12, 2020
1 parent 1964f3b commit ecb32d3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/xpra/client/window_backing_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,11 @@ def make_csc(self, src_width, src_height, src_format,
dst_width, dst_height, dst_format_options, speed):
global CSC_OPTIONS
in_options = CSC_OPTIONS.get(src_format, {})
assert in_options, "no csc options for '%s' input in %s" % (src_format, CSC_OPTIONS)
if not in_options:
log.error("Error: no csc options for '%s' input, only found:", src_format)
for k,v in CSC_OPTIONS.items():
log.error(" * %-8s : %s", k, csv(v))
raise Exception("no csc options for '%s' input in %s" % (src_format, csv(CSC_OPTIONS.keys())))
videolog("make_csc%s",
(src_width, src_height, src_format, dst_width, dst_height, dst_format_options, speed))
for dst_format in dst_format_options:
Expand Down

0 comments on commit ecb32d3

Please sign in to comment.