[vlc-commits] vdr: do not turn off caching (refs #8446)

Rémi Denis-Courmont git at videolan.org
Wed Apr 17 19:07:38 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Apr 17 20:05:48 2013 +0300| [3af9805b94201b330bed77aca629ea454d120064] | committer: Rémi Denis-Courmont

vdr: do not turn off caching (refs #8446)

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

 modules/access/vdr.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modules/access/vdr.c b/modules/access/vdr.c
index 56e4eb0..f2ee8ff 100644
--- a/modules/access/vdr.c
+++ b/modules/access/vdr.c
@@ -556,13 +556,11 @@ static void OptimizeForRead( int fd )
     posix_fadvise( fd, 0, 4096, POSIX_FADV_WILLNEED );
     posix_fadvise( fd, 0, 0, POSIX_FADV_NOREUSE );
 #endif
-#ifdef HAVE_FCNTL
 #ifdef F_RDAHEAD
     fcntl( fd, F_RDAHEAD, 1 );
 #endif
 #ifdef F_NOCACHE
-    fcntl( fd, F_NOCACHE, 1 );
-#endif
+    fcntl( fd, F_NOCACHE, 0 );
 #endif
 }
 



More information about the vlc-commits mailing list