]> git.sesse.net Git - vlc/commit
dvdnav: cleanup probing
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 7 May 2011 08:47:28 +0000 (11:47 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 7 May 2011 08:52:50 +0000 (11:52 +0300)
commit59d12a2083bc0be1aaa348a8e0d7014dbd4dfc37
tree59dd21382f7491acb92f64791f935085e27895f1
parent32b362986e094e10878bd1145d9d2df3dd7fd2a1
dvdnav: cleanup probing

- Do not probe paths that do not exist (ENOENT).
- If the OS supports open()ing directories (HAVE_FDOPENDIR), do not
  probe paths that cannot be opened.
- Do not probe files whereby fstat() fails.
- Do not probe non-regular files other than directories and block
  devices (previously, only FIFOs were discarded).
- Look for anchor even if fstat() is not supported.
modules/access/dvdnav.c