[FFmpeg-devel] [PATCH v2 05/14] avformat/network: add logging context to log
Steven Liu
lq at chinaffmpeg.org
Wed Oct 2 09:58:06 EEST 2019
Signed-off-by: Steven Liu <lq at chinaffmpeg.org>
---
libavformat/network.c | 4 ++--
1 file 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();
--
2.15.1
More information about the ffmpeg-devel
mailing list