vlc | branch: master | Janboe Ye <[email protected]> | Sat Feb 22 04:04:18 
2020 +0800| [f2ce6f335eb87dc949c00fd23dd343e793f18ac9] | committer: Thomas 
Guillem

dsm: add missing I/O error handling

Signed-off-by: Janboe Ye <[email protected]>

> 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;
     }
 

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to