Skip to content

Commit

Permalink
limit the maximum number of delta buckets
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@8315 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Dec 28, 2014
1 parent dddba99 commit 6d16258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/server/window_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def __init__(self, queue_size, call_in_encode_thread, queue_packet, compressed_w
if not window.is_tray():
self.supports_delta = [x for x in encoding_options.strlistget("supports_delta", []) if x in ("png", "rgb24", "rgb32")]
if self.supports_delta:
self.delta_buckets = encoding_options.intget("delta_buckets", 1)
self.delta_buckets = min(25, encoding_options.intget("delta_buckets", 1))
self.delta_pixel_data = [None for _ in range(self.delta_buckets)]
self.batch_config = batch_config
#auto-refresh:
Expand Down

0 comments on commit 6d16258

Please sign in to comment.