[vlc-devel] [PATCH 3/5] file out: use vlc_send()

RĂ©mi Denis-Courmont remi at remlab.net
Sat Mar 28 08:20:51 CET 2020


---
 modules/access_output/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access_output/file.c b/modules/access_output/file.c
index c983e3a8f0..036a0ceda6 100644
--- a/modules/access_output/file.c
+++ b/modules/access_output/file.c
@@ -163,7 +163,7 @@ static ssize_t Send(sout_access_out_t *access, block_t *block)
         }
 
         /* TODO: vectorized I/O with sendmsg() */
-        ssize_t val = send(fd, block->p_buffer, block->i_buffer, MSG_NOSIGNAL);
+        ssize_t val = vlc_send(fd, block->p_buffer, block->i_buffer, 0);
         if (val <= 0)
         {   /* FIXME: errno is meaningless if val is zero */
             if (errno == EINTR)
-- 
2.26.0



More information about the vlc-devel mailing list