Skip to content

Commit

Permalink
run the scrolling detection code with "real video" if detection is on…
Browse files Browse the repository at this point in the history
… since it may get it wrong

git-svn-id: https://xpra.org/svn/Xpra/trunk@13799 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Sep 21, 2016
1 parent 71b7e05 commit 4f6bfaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xpra/server/window/window_video_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -1467,7 +1467,8 @@ def do_video_encode(self, encoding, image, options):
self.pixel_format = src_format

#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:
# or when a true video region exists and detection is turned off
if self.supports_scrolling and not self.b_frame_flush_timer and not STRICT_MODE and (self.video_subregion.detection or not self.subregion_is_video()):
try:
start = time.time()
lsd = self.scroll_data
Expand Down

0 comments on commit 4f6bfaf

Please sign in to comment.