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 | d2519e8625f901856bfc915a1dc1f492bbd8b395 (patch) | |
tree | 8ee3b20da81ed695abbc7e601d952a17d9fdbe9e /libavformat/unix.c | |
parent | 93b4cc38b086f27739a333866cc490ed1a15f499 (diff) | |
download | ffmpeg-d2519e8625f901856bfc915a1dc1f492bbd8b395.tar.gz |
lavf/network: log ff_socket() errors to proper contexts rather than NULL
Diffstat (limited to 'libavformat/unix.c')
-rw-r--r-- | libavformat/unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/unix.c b/libavformat/unix.c index 38016dbafe..e668744580 100644 --- a/libavformat/unix.c +++ b/libavformat/unix.c @@ -69,7 +69,7 @@ static int unix_open(URLContext *h, const char *filename, int flags) s->addr.sun_family = AF_UNIX; av_strlcpy(s->addr.sun_path, filename, sizeof(s->addr.sun_path)); - if ((fd = ff_socket(AF_UNIX, s->type, 0)) < 0) + if ((fd = ff_socket(AF_UNIX, s->type, 0, h)) < 0) return ff_neterrno(); if (s->timeout < 0 && h->rw_timeout) |