Commit 5b7fd302 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Don't bother seeking when using mmap

parent 70a886eb
......@@ -434,8 +434,10 @@ static int Seek (access_t *p_access, int64_t i_pos)
p_access->info.i_pos = i_pos;
p_access->info.b_eof = VLC_FALSE;
/* Determine which file we need to access */
#ifdef HAVE_MMAP
if (p_access->pf_block == NULL)
lseek (p_access->p_sys->fd, i_pos, SEEK_SET);
#endif
return VLC_SUCCESS;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment