[gtk-vnc] src: add logging of encodings that are sent
- From: Daniel P. Berrange <dberrange src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-vnc] src: add logging of encodings that are sent
- Date: Thu, 1 Apr 2021 09:52:34 +0000 (UTC)
commit df0a13baf6b021c693c390d987ff1b2071f992a1
Author: Daniel P. Berrangé <dan berrange com>
Date: Wed Mar 31 17:07:44 2021 +0100
src: add logging of encodings that are sent
Signed-off-by: Daniel P. Berrangé <berrange redhat com>
src/vncconnection.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/vncconnection.c b/src/vncconnection.c
index 480fa3d..a70ece9 100644
--- a/src/vncconnection.c
+++ b/src/vncconnection.c
@@ -1855,7 +1855,7 @@ gboolean vnc_connection_set_encodings(VncConnection *conn, int n_encoding, gint3
*
* So we kill off ZRLE encoding for problematic pixel formats
*/
- for (i = 0; i < n_encoding; i++)
+ for (i = 0; i < n_encoding; i++) {
if (priv->fmt.depth == 32 &&
(priv->fmt.red_max > 255 ||
priv->fmt.blue_max > 255 ||
@@ -1863,7 +1863,10 @@ gboolean vnc_connection_set_encodings(VncConnection *conn, int n_encoding, gint3
encoding[i] == VNC_CONNECTION_ENCODING_ZRLE) {
VNC_DEBUG("Dropping ZRLE encoding for broken pixel format");
skip_zrle++;
+ } else {
+ VNC_DEBUG("Advertizing encoding '%d' (0x%x)", encoding[i], encoding[i]);
}
+ }
priv->has_ext_key_event = FALSE;
priv->has_audio = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]