[vlc-commits] rtp: ignore MSG_TRUNC if missing

Rémi Denis-Courmont git at videolan.org
Sun Jun 7 09:35:30 CEST 2020


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jun  7 10:35:02 2020 +0300| [b3fe59fad88112045e8c5ddda325fb3a06a2843e] | committer: Rémi Denis-Courmont

rtp: ignore MSG_TRUNC if missing

(same as VLC 3.0 does)

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

 modules/access/rtp/datagram.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/access/rtp/datagram.c b/modules/access/rtp/datagram.c
index 55323a3a8a..bda8942fcb 100644
--- a/modules/access/rtp/datagram.c
+++ b/modules/access/rtp/datagram.c
@@ -32,6 +32,10 @@
 #include <vlc_network.h>
 #include "vlc_dtls.h"
 
+#ifndef MSG_TRUNC
+#define MSG_TRUNC 0
+#endif
+
 struct vlc_dgram_sock
 {
     int fd;



More information about the vlc-commits mailing list