Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
918910e2
Commit
918910e2
authored
Oct 12, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable mmap by default (works around #2188)
parent
d3ab3afe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
modules/access/mmap.c
modules/access/mmap.c
+2
-4
No files found.
modules/access/mmap.c
View file @
918910e2
...
@@ -58,11 +58,7 @@ vlc_module_begin();
...
@@ -58,11 +58,7 @@ vlc_module_begin();
set_capability
(
"access"
,
52
);
set_capability
(
"access"
,
52
);
add_shortcut
(
"file"
);
add_shortcut
(
"file"
);
set_callbacks
(
Open
,
Close
);
set_callbacks
(
Open
,
Close
);
#ifdef __APPLE__
add_bool
(
"file-mmap"
,
false
,
NULL
,
add_bool
(
"file-mmap"
,
false
,
NULL
,
#else
add_bool
(
"file-mmap"
,
true
,
NULL
,
#endif
FILE_MMAP_TEXT
,
FILE_MMAP_LONGTEXT
,
true
);
FILE_MMAP_TEXT
,
FILE_MMAP_LONGTEXT
,
true
);
vlc_module_end
();
vlc_module_end
();
...
@@ -86,6 +82,8 @@ static int Open (vlc_object_t *p_this)
...
@@ -86,6 +82,8 @@ static int Open (vlc_object_t *p_this)
const
char
*
path
=
p_access
->
psz_path
;
const
char
*
path
=
p_access
->
psz_path
;
int
fd
;
int
fd
;
assert
((
INT64_C
(
1
)
<<
63
)
==
((
off_t
)(
INT64_C
(
1
)
<<
63
)));
if
(
!
var_CreateGetBool
(
p_this
,
"file-mmap"
))
if
(
!
var_CreateGetBool
(
p_this
,
"file-mmap"
))
return
VLC_EGENERIC
;
/* disabled */
return
VLC_EGENERIC
;
/* disabled */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment