lavf/network: log ff_socket() errors to proper contexts rather than NULL

This commit is contained in:
Anton Khirnov 2022-01-10 17:34:04 +01:00
parent 93b4cc38b0
commit d2519e8625
6 changed files with 10 additions and 10 deletions

View file

@ -351,9 +351,9 @@ static int udp_socket_create(URLContext *h, struct sockaddr_storage *addr,
goto fail;
for (res = res0; res; res=res->ai_next) {
if (s->udplite_coverage)
udp_fd = ff_socket(res->ai_family, SOCK_DGRAM, IPPROTO_UDPLITE);
udp_fd = ff_socket(res->ai_family, SOCK_DGRAM, IPPROTO_UDPLITE, h);
else
udp_fd = ff_socket(res->ai_family, SOCK_DGRAM, 0);
udp_fd = ff_socket(res->ai_family, SOCK_DGRAM, 0, h);
if (udp_fd != -1) break;
ff_log_net_error(h, AV_LOG_ERROR, "socket");
}