From 7b4b8a95b4a4035bbfe5450e7cd6efa1d1ac2021 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Mon, 14 Mar 2016 15:08:13 -0400 Subject: [PATCH] rfbsrc: Properly fallback to 3.3 If the major version is not 3, then the minor version provided should be ignored, as it is meaningless for our fallback. --- gst/librfb/rfbdecoder.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/librfb/rfbdecoder.c b/gst/librfb/rfbdecoder.c index e332c04..bc074a5 100644 --- a/gst/librfb/rfbdecoder.c +++ b/gst/librfb/rfbdecoder.c @@ -389,6 +389,7 @@ rfb_decoder_state_wait_for_protocol_version (RfbDecoder * decoder) ("A major protocol version of %d is not supported, falling back to 3", decoder->protocol_major); decoder->protocol_major = 3; + decoder->protocol_minor = 3; } switch (decoder->protocol_minor) { case 3: -- 2.7.4