[FFmpeg-cvslog] r22972 - trunk/libavformat/file.c

stefano subversion
Tue Apr 27 00:36:51 CEST 2010


Author: stefano
Date: Tue Apr 27 00:36:51 2010
New Revision: 22972

Log:
Make file_open() return the error code set in errno if open() fails,
rather than always ENOENT.

Modified:
   trunk/libavformat/file.c

Modified: trunk/libavformat/file.c
==============================================================================
--- trunk/libavformat/file.c	Tue Apr 27 00:07:15 2010	(r22971)
+++ trunk/libavformat/file.c	Tue Apr 27 00:36:51 2010	(r22972)
@@ -53,7 +53,7 @@ static int file_open(URLContext *h, cons
 #endif
     fd = open(filename, access, 0666);
     if (fd == -1)
-        return AVERROR(ENOENT);
+        return AVERROR(errno);
     h->priv_data = (void *) (intptr_t) fd;
     return 0;
 }



More information about the ffmpeg-cvslog mailing list