]> git.sesse.net Git - vlc/blobdiff - modules/access/mtp.c
demux: xspf: default psz_base to the XSPF resource location (fixes #6186, #12058)
[vlc] / modules / access / mtp.c
index 9cd80232b1dae76964227d85e061a55b67fda933..b38e16ee24dc2a0b5616b79fcb861d82475181c3 100644 (file)
@@ -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;
 }