Commit b07af9f4 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

file: pass error from lseek()

parent f8fde191
...@@ -328,7 +328,8 @@ static int FileSeek (access_t *p_access, uint64_t i_pos) ...@@ -328,7 +328,8 @@ static int FileSeek (access_t *p_access, uint64_t i_pos)
p_access->info.i_pos = i_pos; p_access->info.i_pos = i_pos;
p_access->info.b_eof = false; p_access->info.b_eof = false;
lseek (p_access->p_sys->fd, i_pos, SEEK_SET); if (lseek (p_access->p_sys->fd, i_pos, SEEK_SET) == (off_t)-1)
return VLC_EGENERIC;
return VLC_SUCCESS; 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