Skip to content

Commit

Permalink
#1232: run the scrolling detection even when handling "true video", s…
Browse files Browse the repository at this point in the history
…ince it may kick in on scroll areas and scrolling detection is cheap

git-svn-id: https://xpra.org/svn/Xpra/trunk@13797 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Sep 21, 2016
1 parent e7acdb8 commit 99ec1d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xpra/server/window/window_video_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -1466,8 +1466,8 @@ def do_video_encode(self, encoding, image, options):
videolog.warn("image pixel format changed from %s to %s", self.pixel_format, src_format)
self.pixel_format = src_format

#check for scrolling if we're not dealing with a "real" video area:
if self.supports_scrolling and not self.subregion_is_video() and not self.b_frame_flush_timer and not STRICT_MODE:
#check for scrolling, unless there's already a b-frame pending, or in strict mode:
if self.supports_scrolling and not self.b_frame_flush_timer and not STRICT_MODE:
try:
start = time.time()
lsd = self.scroll_data
Expand Down

0 comments on commit 99ec1d9

Please sign in to comment.