1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Merge commit '2a0ec47bd70ebb79e8b2d2f956feeb3a813df798'

* commit '2a0ec47bd70ebb79e8b2d2f956feeb3a813df798':
  unix: Convert from AVERROR to errno range before comparing error codes

Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-08-06 17:20:47 +02:00
commit 287f7d0ae1

View File

@ -93,7 +93,7 @@ static int unix_open(URLContext *h, const char *filename, int flags)
return 0; return 0;
fail: fail:
if (s->listen && ret != EADDRINUSE) if (s->listen && AVUNERROR(ret) != EADDRINUSE)
unlink(s->addr.sun_path); unlink(s->addr.sun_path);
if (fd >= 0) if (fd >= 0)
closesocket(fd); closesocket(fd);