avformat/tls_openssl: replace 1 with TLS_ST_OK to be more clear
Signed-off-by: Jack Lau <jacklau1222@qq.com> Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
This commit is contained in:
parent
7bd3bdbd62
commit
dda91b87e8
1 changed files with 2 additions and 1 deletions
|
|
@ -717,7 +717,8 @@ static int dtls_handshake(URLContext *h)
|
|||
av_log(p, AV_LOG_TRACE, "Handshake success, r0=%d\n", r0);
|
||||
}
|
||||
|
||||
if (SSL_is_init_finished(p->ssl) != 1)
|
||||
/* Check whether the handshake is completed. */
|
||||
if (SSL_is_init_finished(p->ssl) != TLS_ST_OK)
|
||||
goto end;
|
||||
|
||||
ret = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue