mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/network: add logging context to log
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
parent
17236a2c40
commit
4ff97342ce
|
@ -238,7 +238,7 @@ int ff_accept(int fd, int timeout, URLContext *h)
|
|||
if (ret < 0)
|
||||
return ff_neterrno();
|
||||
if (ff_socket_nonblock(ret, 1) < 0)
|
||||
av_log(NULL, AV_LOG_DEBUG, "ff_socket_nonblock failed\n");
|
||||
av_log(h, AV_LOG_DEBUG, "ff_socket_nonblock failed\n");
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -264,7 +264,7 @@ int ff_listen_connect(int fd, const struct sockaddr *addr,
|
|||
socklen_t optlen;
|
||||
|
||||
if (ff_socket_nonblock(fd, 1) < 0)
|
||||
av_log(NULL, AV_LOG_DEBUG, "ff_socket_nonblock failed\n");
|
||||
av_log(h, AV_LOG_DEBUG, "ff_socket_nonblock failed\n");
|
||||
|
||||
while ((ret = connect(fd, addr, addrlen))) {
|
||||
ret = ff_neterrno();
|
||||
|
|
Loading…
Reference in New Issue