From ac2ca38a3a9835b1705693b316526ece20ad37ca Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 2 Jan 2023 21:09:04 +0700 Subject: [PATCH] enable faster codecs in some corner cases enc_spng can be used for 'png/L' and enc_jpeg for 'jpega' --- xpra/server/mixins/encoding_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xpra/server/mixins/encoding_server.py b/xpra/server/mixins/encoding_server.py index 7a00145b63..ac0bea787b 100644 --- a/xpra/server/mixins/encoding_server.py +++ b/xpra/server/mixins/encoding_server.py @@ -54,10 +54,10 @@ def setup(self): if "webp" in ae: #try to load the fast webp encoder: load_codec("enc_webp") - if "png" in ae: + if "png" in ae or "png/L" in ae: #try to load the fast png encoder: load_codec("enc_spng") - if "jpeg" in ae: + if "jpeg" in ae or "jpega" in ae: #try to load the fast jpeg encoders: load_codec("enc_jpeg") if "avif" in ae: