[vlc-devel] commit: Disable mmap by default (works around #2188) ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Oct 12 13:11:17 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Oct 12 14:10:58 2008 +0300| [918910e2d4c33ca8050ebee1f98b6d3cb5f506de] | committer: Rémi Denis-Courmont 

Disable mmap by default (works around #2188)

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

 modules/access/mmap.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/modules/access/mmap.c b/modules/access/mmap.c
index 823e6d4..2315e2b 100644
--- a/modules/access/mmap.c
+++ b/modules/access/mmap.c
@@ -58,11 +58,7 @@ vlc_module_begin();
     set_capability ("access", 52);
     add_shortcut ("file");
     set_callbacks (Open, Close);
-#ifdef __APPLE__
     add_bool ("file-mmap", false, NULL,
-#else
-    add_bool ("file-mmap", true, NULL,
-#endif
               FILE_MMAP_TEXT, FILE_MMAP_LONGTEXT, true);
 vlc_module_end();
 
@@ -86,6 +82,8 @@ static int Open (vlc_object_t *p_this)
     const char *path = p_access->psz_path;
     int fd;
 
+    assert ((INT64_C(1) << 63) == ((off_t)(INT64_C(1) << 63)));
+
     if (!var_CreateGetBool (p_this, "file-mmap"))
         return VLC_EGENERIC; /* disabled */
 




More information about the vlc-devel mailing list