diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2018-04-25 13:36:01 -0400 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2018-04-25 13:37:12 -0400 |
commit | 5d1efe7f556f4a47a2a80d19bc73ea1875fbcc73 (patch) | |
tree | e423a25f46d6cf319f849beae739bbe5d8804796 /gst | |
parent | 83d0623293770980184a0924192a47ed46011f8a (diff) |
rfbsrc: Fix support for applevncserver
This server uses an unknown 003.889 protocol version. This patch fixes
the version validation in order to simply fallback to 3.3 as suggested
by the spec.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/librfb/rfbdecoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/librfb/rfbdecoder.c b/gst/librfb/rfbdecoder.c index e6eb70135..b3b01f5a7 100644 --- a/gst/librfb/rfbdecoder.c +++ b/gst/librfb/rfbdecoder.c @@ -347,7 +347,7 @@ rfb_decoder_state_wait_for_protocol_version (RfbDecoder * decoder) if (!rfb_decoder_read (decoder, 12)) return FALSE; - g_return_val_if_fail (memcmp (decoder->data, "RFB 003.00", 10) == 0, FALSE); + g_return_val_if_fail (memcmp (decoder->data, "RFB 003.", 8) == 0, FALSE); g_return_val_if_fail (*(decoder->data + 11) == 0x0a, FALSE); GST_DEBUG ("\"%.11s\"", decoder->data); |