[vlc-commits] access_out: rist: check the return value of rist_Write
Sergio Ammirata
git at videolan.org
Fri Dec 7 09:50:08 CET 2018
vlc | branch: master | Sergio Ammirata <sergio at ammirata.net> | Tue Nov 27 08:38:43 2018 -0500| [aa3ced83d6c2c6496590461c539eefa1ab4308c8] | committer: Thomas Guillem
access_out: rist: check the return value of rist_Write
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=aa3ced83d6c2c6496590461c539eefa1ab4308c8
---
modules/access_output/rist.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/access_output/rist.c b/modules/access_output/rist.c
index 17929d0050..6fec6d5a10 100644
--- a/modules/access_output/rist.c
+++ b/modules/access_output/rist.c
@@ -178,7 +178,10 @@ static void rist_retransmit(sout_access_out_t *p_access, struct rist_flow *flow,
seq, age, flow->wi);
p_sys->i_retransmit_packets++;
vlc_mutex_lock( &p_sys->fd_lock );
- rist_Write(flow->fd_out, pkt->buffer->p_buffer, pkt->buffer->i_buffer);
+ if (rist_Write(flow->fd_out, pkt->buffer->p_buffer, pkt->buffer->i_buffer)
+ != (ssize_t)pkt->buffer->i_buffer) {
+ msg_Err(p_access, "Error sending retransmitted packet after 2 tries ...");
+ }
vlc_mutex_unlock( &p_sys->fd_lock );
}
}
More information about the vlc-commits
mailing list