summaryrefslogtreecommitdiff
path: root/gst/librfb
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2016-03-14 15:08:13 -0400
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2016-04-05 13:33:38 -0400
commit7b4b8a95b4a4035bbfe5450e7cd6efa1d1ac2021 (patch)
treea273ce3f888ad555b3ca29dd4126f80bfc560c6a /gst/librfb
parentb83a6967c9c80404c180b1693dc5c55e8fc3e9d1 (diff)
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.
Diffstat (limited to 'gst/librfb')
-rw-r--r--gst/librfb/rfbdecoder.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/librfb/rfbdecoder.c b/gst/librfb/rfbdecoder.c
index e332c0430..bc074a576 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: