[vlc-commits] dsm: add missing I/O error handling

Janboe Ye git at videolan.org
Fri Feb 28 12:46:21 CET 2020


vlc/vlc-3.0 | branch: master | Janboe Ye <janboe.ye at outlook.com> | Sat Feb 22 04:04:18 2020 +0800| [53349bfb86670ad4b5fc891c2727620b0f3664bb] | committer: Thomas Guillem

dsm: add missing I/O error handling

Signed-off-by: Janboe Ye <janboe.ye at outlook.com>
(cherry picked from commit f2ce6f335eb87dc949c00fd23dd343e793f18ac9)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=53349bfb86670ad4b5fc891c2727620b0f3664bb
---

 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 69f61b9860..795872092e 100644
--- a/modules/access/dsm/access.c
+++ b/modules/access/dsm/access.c
@@ -523,6 +523,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