aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/udp.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2016-09-03 15:18:40 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2016-09-03 15:18:40 +0200
commit3c821a1a7bf21536197e68453376242bb5832687 (patch)
tree20d50b5f6692c78ffe87bdae2fa5dde2d4e2523e /libavformat/udp.c
parent2dfd0f4b9eed8d1f7df22a6b2ebd06424fff444f (diff)
downloadffmpeg-3c821a1a7bf21536197e68453376242bb5832687.tar.gz
lavf/udp: Do not use MCAST_* for multicast on tvOS.
Fixes ticket #5774.
Diffstat (limited to 'libavformat/udp.c')
-rw-r--r--libavformat/udp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavformat/udp.c b/libavformat/udp.c
index 8699c1c119..3835f989c4 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -42,6 +42,10 @@
#include "os_support.h"
#include "url.h"
+#ifdef __APPLE__
+#include "TargetConditionals.h"
+#endif
+
#if HAVE_UDPLITE_H
#include "udplite.h"
#else
@@ -278,7 +282,7 @@ static int udp_set_multicast_sources(URLContext *h,
int addr_len, char **sources,
int nb_sources, int include)
{
-#if HAVE_STRUCT_GROUP_SOURCE_REQ && defined(MCAST_BLOCK_SOURCE) && !defined(_WIN32)
+#if HAVE_STRUCT_GROUP_SOURCE_REQ && defined(MCAST_BLOCK_SOURCE) && !defined(_WIN32) && (!defined(TARGET_OS_TV) || !TARGET_OS_TV)
/* These ones are available in the microsoft SDK, but don't seem to work
* as on linux, so just prefer the v4-only approach there for now. */
int i;