[vlc-devel] [PATCH] access directory: try opening files as non blocking (fix #6940).
Francois Cartegnie
fcvlcdev at free.fr
Wed Jun 13 22:40:25 CEST 2012
Directories containing a FIFO freezes browsing on systems with
HAVE_OPENAT.
---
modules/access/directory.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/access/directory.c b/modules/access/directory.c
index 10d2103..72e2aa0 100644
--- a/modules/access/directory.c
+++ b/modules/access/directory.c
@@ -324,7 +324,7 @@ block_t *DirBlock (access_t *p_access)
{
DIR *handle;
#ifdef HAVE_OPENAT
- int fd = vlc_openat (dirfd (current->handle), entry, O_RDONLY);
+ int fd = vlc_openat (dirfd (current->handle), entry, O_RDONLY|O_NONBLOCK);
if (fd == -1)
goto skip; /* File cannot be opened... forget it */
--
1.7.6
More information about the vlc-devel
mailing list