[FFmpeg-soc] [soc]: r4723 - concat/libavformat/playlist.c

gkovacs subversion at mplayerhq.hu
Thu Jul 16 03:10:22 CEST 2009


Author: gkovacs
Date: Thu Jul 16 03:10:22 2009
New Revision: 4723

Log:
use url_exist to check if relative or absolute paths

Modified:
   concat/libavformat/playlist.c

Modified: concat/libavformat/playlist.c
==============================================================================
--- concat/libavformat/playlist.c	Thu Jul 16 02:44:06 2009	(r4722)
+++ concat/libavformat/playlist.c	Thu Jul 16 03:10:22 2009	(r4723)
@@ -174,7 +174,7 @@ void ff_playlist_relative_paths(char **f
 {
     int i;
     for (i = 0; i < len; ++i) { // determine if relative paths
-        FILE *file;
+        ByteIOContext *s;
         char *fullfpath;
         int wdslen = strlen(workingdir);
         int flslen = strlen(flist[i]);
@@ -183,9 +183,7 @@ void ff_playlist_relative_paths(char **f
         fullfpath[wdslen] = '/';
         fullfpath[wdslen+1] = 0;
         av_strlcat(fullfpath, flist[i], wdslen+flslen+2);
-        if ((file = fopen(fullfpath, "r"))) {
-            fclose(file);
+        if (url_exist(fullfpath))
             flist[i] = fullfpath;
-        }
     }
 }


More information about the FFmpeg-soc mailing list