aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/unix.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2013-08-05 19:39:08 +0300
committerMartin Storsjö <martin@martin.st>2013-08-06 10:38:14 +0300
commit2a0ec47bd70ebb79e8b2d2f956feeb3a813df798 (patch)
tree2abaadeb408a5832c387ca98bfdf22abe693e4fb /libavformat/unix.c
parent0ba4ea312b2a6bebbdd7ff228d46385159c63c9f (diff)
downloadffmpeg-2a0ec47bd70ebb79e8b2d2f956feeb3a813df798.tar.gz
unix: Convert from AVERROR to errno range before comparing error codes
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/unix.c')
-rw-r--r--libavformat/unix.c2
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);