[vlc-devel] commit: mmap: default enable the module on Darwin ( Felix Paul Kühne )

git version control git at videolan.org
Wed Sep 30 14:39:06 CEST 2009


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Sep 30 14:39:02 2009 +0200| [15071afcbd9160efe73a4df9ae30e838f6c35ebf] | committer: Felix Paul Kühne 

mmap: default enable the module on Darwin

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

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

diff --git a/modules/access/mmap.c b/modules/access/mmap.c
index 9a5ae67..cc729bc 100644
--- a/modules/access/mmap.c
+++ b/modules/access/mmap.c
@@ -58,8 +58,13 @@ vlc_module_begin ()
     set_capability ("access", 52)
     add_shortcut ("file")
     set_callbacks (Open, Close)
+#ifdef __APPLE__
+    add_bool ("file-mmap", true, NULL,
+              FILE_MMAP_TEXT, FILE_MMAP_LONGTEXT, true)
+#else
     add_bool ("file-mmap", false, NULL,
               FILE_MMAP_TEXT, FILE_MMAP_LONGTEXT, true)
+#endif
 vlc_module_end ()
 
 static block_t *Block (access_t *);




More information about the vlc-devel mailing list