Sergio Ammirata
2018-12-07 08:50:08 UTC
vlc | branch: master | Sergio Ammirata <***@ammirata.net> | Tue Nov 27 08:38:43 2018 -0500| [aa3ced83d6c2c6496590461c539eefa1ab4308c8] | committer: Thomas Guillem
access_out: rist: check the return value of rist_Write
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 );
}
}
access_out: rist: check the return value of rist_Write
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 );
}
}