From d6cfbdc4f3fcb929e9b4ef21c6b2e7f873b5077c Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sun, 11 Sep 2016 16:32:44 +0000 Subject: [PATCH] when we change the scaling, we often need to change the csc module too (current output dimensions of csc won't match the new video encoder's input dimensions) git-svn-id: https://xpra.org/svn/Xpra/trunk@13664 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- src/xpra/server/window/window_video_source.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xpra/server/window/window_video_source.py b/src/xpra/server/window/window_video_source.py index edc8aeecb8..48b22fd980 100644 --- a/src/xpra/server/window/window_video_source.py +++ b/src/xpra/server/window/window_video_source.py @@ -928,6 +928,9 @@ def checknovideo(*info): elif csce.get_src_width()!=csc_width or csce.get_src_height()!=csc_height: scorelog("check_pipeline_score(%s) change of csc input dimensions from %ix%i to %ix%i", force_reload, csce.get_src_width(), csce.get_src_height(), csc_width, csc_height) self.csc_encoder_clean() + elif csce.get_dst_width()!=enc_width or csce.get_dst_height()!=enc_height: + scorelog("check_pipeline_score(%s) change of csc ouput dimensions from %ix%i to %ix%i", force_reload, csce.get_dst_width(), csce.get_dst_height(), enc_width, enc_height) + self.csc_encoder_clean() if ve is None: pass #nothing to check or clean elif ve.get_src_format()!=enc_in_format: