diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2025-06-26 01:42:36 +0200 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2025-07-11 17:49:57 +0200 |
commit | 2c7e117fe0bd65a18286e6abe6c66f1bb7f8722e (patch) | |
tree | 5fc4a96a4a61260f5a541f03ee9a08be285d2c7e /libavformat/tls.c | |
parent | 7c91ae94198fd3dce7b9bed9d67096f0e5b5f260 (diff) | |
download | ffmpeg-2c7e117fe0bd65a18286e6abe6c66f1bb7f8722e.tar.gz |
avformat/tls: move whip specific init out of generic tls code
Diffstat (limited to 'libavformat/tls.c')
-rw-r--r-- | libavformat/tls.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/libavformat/tls.c b/libavformat/tls.c index c0adaf61ce..bd9c05e6dc 100644 --- a/libavformat/tls.c +++ b/libavformat/tls.c @@ -141,15 +141,6 @@ int ff_tls_open_underlying(TLSShared *c, URLContext *parent, const char *uri, AV ret = ffurl_open_whitelist(c->is_dtls ? &c->udp : &c->tcp, buf, AVIO_FLAG_READ_WRITE, &parent->interrupt_callback, options, parent->protocol_whitelist, parent->protocol_blacklist, parent); - if (c->is_dtls) { - if (ret < 0) { - av_log(c, AV_LOG_ERROR, "Failed to open udp://%s:%d\n", c->underlying_host, port); - return ret; - } - /* Make the socket non-blocking, set to READ and WRITE mode after connected */ - ff_socket_nonblock(ffurl_get_file_handle(c->udp), 1); - c->udp->flags |= AVIO_FLAG_READ | AVIO_FLAG_NONBLOCK; - } return ret; } |