[vlc-commits] dsm: add missing I/O error handling
Janboe Ye
git at videolan.org
Mon Feb 24 10:13:30 CET 2020
vlc | branch: master | Janboe Ye <janboe.ye at outlook.com> | Sat Feb 22 04:04:18 2020 +0800| [f2ce6f335eb87dc949c00fd23dd343e793f18ac9] | committer: Thomas Guillem
dsm: add missing I/O error handling
Signed-off-by: Janboe Ye <janboe.ye at outlook.com>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f2ce6f335eb87dc949c00fd23dd343e793f18ac9
---
modules/access/dsm/access.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/access/dsm/access.c b/modules/access/dsm/access.c
index 14db6c1817..dfa390cb7a 100644
--- a/modules/access/dsm/access.c
+++ b/modules/access/dsm/access.c
@@ -524,6 +524,8 @@ static ssize_t Read( stream_t *p_access, void *p_buffer, size_t i_len )
if( i_read < 0 )
{
msg_Err( p_access, "read failed" );
+ if (errno != EINTR && errno != EAGAIN)
+ return 0;
return -1;
}
More information about the vlc-commits
mailing list