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>
release/5.1
Zhao Zhili 3 years ago committed by Steven Liu
parent f125c504d8
commit 397a777aa1
  1. 4
      libavformat/libsrt.c

@ -429,7 +429,11 @@ static int libsrt_setup(URLContext *h, const char *uri, int flags)
restart:
#if SRT_VERSION_VALUE >= 0x010401
fd = srt_create_socket();
#else
fd = srt_socket(cur_ai->ai_family, cur_ai->ai_socktype, 0);
#endif
if (fd < 0) {
ret = libsrt_neterrno(h);
goto fail;

Loading…
Cancel
Save