]> git.sesse.net Git - vlc/commitdiff
oneliner to fix i_pos updating. works for me.
authorIlkka Ollakka <ileoo@videolan.org>
Tue, 27 Nov 2007 12:43:54 +0000 (12:43 +0000)
committerIlkka Ollakka <ileoo@videolan.org>
Tue, 27 Nov 2007 12:43:54 +0000 (12:43 +0000)
modules/access/file.c

index ccaf3e8b679f6e373a029626e1be4aa293c06e80..5b572b01a85e0118c6b2653c7b84c738ca9e7955 100644 (file)
@@ -394,7 +394,7 @@ static block_t *mmapBlock (access_t *p_access)
         return NULL;
     }
 
-    p_access->info.i_pos = offset + length;
+    p_access->info.i_pos += length;
 
     msg_Dbg (p_access, "mapped %lu bytes at %p from offset %lu",
              (unsigned long)length, addr, (unsigned long)offset);