diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-01-10 17:34:04 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-01-21 09:25:05 +0100 |
commit | 9e4693a1cbac13324bff9a57fa4dace405ee5ab9 (patch) | |
tree | 12cb9498a1541f6f3f5e9750e335b2d0d393e0ce /libavformat/tcp.c | |
parent | d2519e8625f901856bfc915a1dc1f492bbd8b395 (diff) |
lavf/network: log ff_listen() errors to proper contexts rather than NULL
Diffstat (limited to 'libavformat/tcp.c')
-rw-r--r-- | libavformat/tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/tcp.c b/libavformat/tcp.c index 84d40a1e11..a11ccbb913 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -188,7 +188,7 @@ static int tcp_open(URLContext *h, const char *uri, int flags) if (s->listen == 2) { // multi-client - if ((ret = ff_listen(fd, cur_ai->ai_addr, cur_ai->ai_addrlen)) < 0) + if ((ret = ff_listen(fd, cur_ai->ai_addr, cur_ai->ai_addrlen, h)) < 0) goto fail1; } else if (s->listen == 1) { // single client |