You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/tls_openssl: avoid unusual inline-if style
This commit is contained in:
@@ -879,8 +879,11 @@ static int dtls_start(URLContext *h, const char *url, int flags, AVDictionary **
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Setup DTLS as passive, which is server role. */
|
/* This seems to be neccesary despite explicitly setting client/server method above. */
|
||||||
c->listen ? SSL_set_accept_state(p->ssl) : SSL_set_connect_state(p->ssl);
|
if (c->listen)
|
||||||
|
SSL_set_accept_state(p->ssl);
|
||||||
|
else
|
||||||
|
SSL_set_connect_state(p->ssl);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* During initialization, we only need to call SSL_do_handshake once because SSL_read consumes
|
* During initialization, we only need to call SSL_do_handshake once because SSL_read consumes
|
||||||
|
Reference in New Issue
Block a user