unix: Convert from AVERROR to errno range before comparing error codes

Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Martin Storsjö 2013-08-05 19:39:08 +03:00
parent 0ba4ea312b
commit 2a0ec47bd7
1 changed files with 1 additions and 1 deletions

View File

@ -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);