diff options
-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 09f3d68127..95552a9a7b 100644 --- a/libavformat/unix.c +++ b/libavformat/unix.c @@ -93,7 +93,7 @@ static int unix_open(URLContext *h, const char *filename, int flags) return 0; fail: - if (s->listen && ret != EADDRINUSE) + if (s->listen && AVUNERROR(ret) != EADDRINUSE) unlink(s->addr.sun_path); if (fd >= 0) closesocket(fd); |