git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
253488c
)
Fix file position update
author
Rémi Denis-Courmont
<rem@videolan.org>
Mon, 26 Nov 2007 21:01:13 +0000
(21:01 +0000)
committer
Rémi Denis-Courmont
<rem@videolan.org>
Mon, 26 Nov 2007 21:01:13 +0000
(21:01 +0000)
modules/access/file.c
patch
|
blob
|
history
diff --git
a/modules/access/file.c
b/modules/access/file.c
index
bd76d86
..
616f31d
100644
(file)
--- a/
modules/access/file.c
+++ b/
modules/access/file.c
@@
-394,7
+394,7
@@
static block_t *mmapBlock (access_t *p_access)
return NULL;
}
- p_access->info.i_pos
+=
length;
+ p_access->info.i_pos
= offset +
length;
msg_Dbg (p_access, "mapped %lu bytes at %p from offset %lu",
(unsigned long)length, addr, (unsigned long)offset);