]> git.sesse.net Git - vlc/commitdiff
We also read memory mapping sequentially (well, this is a bit redumdant)
authorRémi Denis-Courmont <rem@videolan.org>
Thu, 21 Feb 2008 20:26:21 +0000 (20:26 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Thu, 21 Feb 2008 20:26:21 +0000 (20:26 +0000)
modules/access/mmap.c

index 8742e65ab5874fa62186d9ade96d59e5e058fa47..188106825d819100227cdc7f2d218be9d667cb77 100644 (file)
@@ -211,6 +211,7 @@ static block_t *Block (access_t *p_access)
         msleep (INPUT_ERROR_SLEEP);
         return NULL;
     }
+    posix_madvise (addr, length, POSIX_MADV_SEQUENTIAL);
 
     block_t *block = block_mmap_Alloc (addr, length);
     if (block == NULL)