mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/libsrt: fix deprecated warning
srt_socket was deprecated after 1.4.1. Reviewed-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: Steven Liu <liuqi05@kuaishou.com>
This commit is contained in:
parent
f125c504d8
commit
397a777aa1
|
@ -429,7 +429,11 @@ static int libsrt_setup(URLContext *h, const char *uri, int flags)
|
||||||
|
|
||||||
restart:
|
restart:
|
||||||
|
|
||||||
|
#if SRT_VERSION_VALUE >= 0x010401
|
||||||
|
fd = srt_create_socket();
|
||||||
|
#else
|
||||||
fd = srt_socket(cur_ai->ai_family, cur_ai->ai_socktype, 0);
|
fd = srt_socket(cur_ai->ai_family, cur_ai->ai_socktype, 0);
|
||||||
|
#endif
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
ret = libsrt_neterrno(h);
|
ret = libsrt_neterrno(h);
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
Loading…
Reference in New Issue