]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/unix.c
mxf: Handle identification metadata
[ffmpeg] / libavformat / unix.c
index 09f3d6812795cd958d7870f6180b9b210d541735..ab57c681953c294c9480fa48bbbd72c7615f1956 100644 (file)
@@ -83,7 +83,7 @@ static int unix_open(URLContext *h, const char *filename, int flags)
         }
     } else {
         ret = ff_listen_connect(fd, (struct sockaddr *)&s->addr,
-                                sizeof(s->addr), s->timeout, h);
+                                sizeof(s->addr), s->timeout, h, 0);
         if (ret < 0)
             goto fail;
     }
@@ -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);