---
 libavformat/unix.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/unix.c b/libavformat/unix.c
index 09f3d68..95552a9 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);
-- 
1.7.9.4

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to