Commit 287f7d0a authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '2a0ec47b'

* commit '2a0ec47b':
  unix: Convert from AVERROR to errno range before comparing error codes
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 83db013a 2a0ec47b
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment