[vlc-devel] commit: file: Big bug... typo in the define. (Derk-Jan Hartman )

git version control git at videolan.org
Fri Oct 10 13:57:02 CEST 2008


vlc | branch: 0.9-bugfix | Derk-Jan Hartman <hartman at videolan.org> | Fri Oct 10 13:53:08 2008 +0200| [d7d95596b2e0b04b6f914795405a162fefcc5866] | committer: Derk-Jan Hartman 

file: Big bug... typo in the define.

The code was never enabled.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d7d95596b2e0b04b6f914795405a162fefcc5866
---

 modules/access/file.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/modules/access/file.c b/modules/access/file.c
index b2b2b23..1151c4d 100644
--- a/modules/access/file.c
+++ b/modules/access/file.c
@@ -381,11 +381,15 @@ static int open_file (access_t *p_access, const char *path)
         return -1;
     }
 
-# if defined(HAVE_FCNTL_H) && defined(F_FDAHEAD) && defined(F_NOCACHE)
+# if defined(HAVE_FCNTL_H)
     /* We'd rather use any available memory for reading ahead
      * than for caching what we've already seen/heard */
+#  if defined(F_RDAHEAD)
     fcntl (fd, F_RDAHEAD, 1);
+#  endif
+#  if defined(F_NOCACHE)
     fcntl (fd, F_NOCACHE, 1);
+#  endif
 # endif
 #endif
 




More information about the vlc-devel mailing list