mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
rfbsrc: Cleanly handle security negotiation failure
When the security cannot be negotiated, the server returns security type of 0 (failure). In that case, the next step is to read the error reason string.
This commit is contained in:
parent
8ac261841c
commit
b83a6967c9
1 changed files with 5 additions and 2 deletions
|
@ -444,8 +444,11 @@ rfb_decoder_state_wait_for_security (RfbDecoder * decoder)
|
|||
GST_DEBUG ("security = %d", decoder->security_type);
|
||||
|
||||
g_return_val_if_fail (decoder->security_type < 3, FALSE);
|
||||
g_return_val_if_fail (decoder->security_type != SECURITY_FAIL,
|
||||
rfb_decoder_state_reason (decoder));
|
||||
|
||||
if (decoder->security_type == SECURITY_FAIL) {
|
||||
decoder->state = rfb_decoder_state_reason;
|
||||
return TRUE;
|
||||
}
|
||||
} else {
|
||||
/* \TODO Add behavior for the rfb 3.7 and 3.8 servers */
|
||||
GST_WARNING ("Other versions are not yet supported");
|
||||
|
|
Loading…
Reference in a new issue