Skip to content

Commit

Permalink
rfbsrc: Fix support for applevncserver
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ndufresne authored and sdroege committed Apr 28, 2018
1 parent e990995 commit 4f2696c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gst/librfb/rfbdecoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4f2696c

Please sign in to comment.