mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
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.
This commit is contained in:
parent
83d0623293
commit
5d1efe7f55
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ rfb_decoder_state_wait_for_protocol_version (RfbDecoder * decoder)
|
||||||
if (!rfb_decoder_read (decoder, 12))
|
if (!rfb_decoder_read (decoder, 12))
|
||||||
return FALSE;
|
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);
|
g_return_val_if_fail (*(decoder->data + 11) == 0x0a, FALSE);
|
||||||
|
|
||||||
GST_DEBUG ("\"%.11s\"", decoder->data);
|
GST_DEBUG ("\"%.11s\"", decoder->data);
|
||||||
|
|
Loading…
Reference in a new issue