diff options
author | Steven Liu <lq@chinaffmpeg.org> | 2019-09-30 14:41:06 +0800 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2019-10-08 13:47:07 +0800 |
commit | 4ff97342ceefb8c90809953e7b39f1c1745ede58 (patch) | |
tree | dbb5ecdcf72c5f03cfb1687ff4b44facfefef320 /libavformat/network.c | |
parent | 17236a2c402b815de889b1f0c54fd903c19a787c (diff) | |
download | ffmpeg-4ff97342ceefb8c90809953e7b39f1c1745ede58.tar.gz |
avformat/network: add logging context to log
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Diffstat (limited to 'libavformat/network.c')
-rw-r--r-- | libavformat/network.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/network.c b/libavformat/network.c index 5664455d18..0f5a575f77 100644 --- a/libavformat/network.c +++ b/libavformat/network.c @@ -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(); |