lavf/network: log ff_socket() errors to proper contexts rather than NULL
This commit is contained in:
parent
93b4cc38b0
commit
d2519e8625
6 changed files with 10 additions and 10 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue