]> git.sesse.net Git - vlc/blobdiff - modules/access/directory.c
Use var_InheritString for --decklink-video-connection.
[vlc] / modules / access / directory.c
index 8c4950f491eb629db1552e48207615e0dc990f3e..b778cf0e252ff37cac3c064a0a556c3092462a77 100644 (file)
@@ -46,9 +46,6 @@
 #   include <io.h>
 #endif
 
-#ifdef HAVE_DIRENT_H
-#   include <dirent.h>
-#endif
 #ifdef __sun__
 static inline int dirfd (DIR *dir)
 {
@@ -122,7 +119,7 @@ int DirInit (access_t *p_access, DIR *handle)
             uri = NULL;
     }
     else
-        uri = make_URI (p_access->psz_filepath);
+        uri = make_URI (p_access->psz_filepath, "file");
     if (unlikely(uri == NULL))
         goto error;