[vlc-commits] src: correctly honour source specific IP addresses in IGMPv3 requests on OS X (close #6524)

Felix Paul Kühne git at videolan.org
Sat Jul 12 12:14:52 CEST 2014


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Jul 12 12:14:39 2014 +0200| [af31b529ed667917ae6e78218ca64b5688d4600e] | committer: Felix Paul Kühne

src: correctly honour source specific IP addresses in IGMPv3 requests on OS X (close #6524)

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

 src/network/udp.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/network/udp.c b/src/network/udp.c
index ce4e419..d121b06 100644
--- a/src/network/udp.c
+++ b/src/network/udp.c
@@ -294,7 +294,9 @@ net_SourceSubscribe (vlc_object_t *obj, int fd,
                      const struct sockaddr *src, socklen_t srclen,
                      const struct sockaddr *grp, socklen_t grplen)
 {
-#ifdef MCAST_JOIN_SOURCE_GROUP
+/* MCAST_JOIN_SOURCE_GROUP was introduced to OS X in v10.7, but it doesn't work,
+ * so ignore it to use the same code path as on 10.5 or 10.6 */
+#ifdef MCAST_JOIN_SOURCE_GROUP && !defined (__APPLE__)
     /* Agnostic SSM multicast join */
     int level;
     struct group_source_req gsr;



More information about the vlc-commits mailing list