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

mtp: pass error from lseek()

parent b07af9f4
......@@ -216,7 +216,8 @@ static int Seek( access_t *p_access, uint64_t i_pos )
p_access->info.i_pos = i_pos;
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;
}
......
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