Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
d9a7620a
Commit
d9a7620a
authored
Mar 02, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the mmap debugging for now.
Signed-off-by:
Rémi Denis-Courmont
<
rem@videolan.org
>
parent
1db7c223
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
modules/access/mmap.c
modules/access/mmap.c
+7
-3
No files found.
modules/access/mmap.c
View file @
d9a7620a
...
...
@@ -42,6 +42,10 @@
#define FILE_MMAP_LONGTEXT N_( \
"Try to use memory mapping to read files and block devices." )
#ifndef NDEBUG
/*# define MMAP_DEBUG 1*/
#endif
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
...
...
@@ -179,7 +183,7 @@ static block_t *Block (access_t *p_access)
}
}
#if
ndef N
DEBUG
#if
def MMAP_
DEBUG
int64_t
dbgpos
=
lseek
(
p_sys
->
fd
,
0
,
SEEK_CUR
);
if
(
dbgpos
!=
p_access
->
info
.
i_pos
)
msg_Err
(
p_access
,
"position: 0x%08llx instead of 0x%08llx"
,
...
...
@@ -225,7 +229,7 @@ static block_t *Block (access_t *p_access)
block
->
p_buffer
+=
inner_offset
;
block
->
i_buffer
-=
inner_offset
;
#if
ndef N
DEBUG
#if
def MMAP_
DEBUG
msg_Dbg
(
p_access
,
"mapped 0x%lx bytes at %p from offset 0x%lx"
,
(
unsigned
long
)
length
,
addr
,
(
unsigned
long
)
outer_offset
);
...
...
@@ -248,7 +252,7 @@ static block_t *Block (access_t *p_access)
static
int
Seek
(
access_t
*
p_access
,
int64_t
i_pos
)
{
#if
ndef N
DEBUG
#if
def MMAP_
DEBUG
lseek
(
p_access
->
p_sys
->
fd
,
i_pos
,
SEEK_SET
);
#endif
...
...
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