From 2a0ec47bd70ebb79e8b2d2f956feeb3a813df798 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Mon, 5 Aug 2013 19:39:08 +0300 Subject: unix: Convert from AVERROR to errno range before comparing error codes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Storsjö --- libavformat/unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/unix.c') 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); -- cgit v1.2.3