mirror of
https://github.com/videolan/vlc.git
synced 2024-11-27 03:47:46 +08:00
nfs: fix pf_read return values
0 should be returned in case of EOS or error, -1 means EAGAIN. /me blames me for not reading the documentation.
This commit is contained in:
parent
a377159162
commit
59a3d85dd2
@ -213,11 +213,11 @@ FileRead(stream_t *p_access, void *p_buf, size_t i_len)
|
||||
p_access) < 0)
|
||||
{
|
||||
msg_Err(p_access, "nfs_read_async failed");
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (vlc_nfs_mainloop(p_access, nfs_read_finished_cb) < 0)
|
||||
return -1;
|
||||
return 0;
|
||||
|
||||
return p_sys->res.read.i_len;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user