diff mbox

[FFmpeg-devel] lavf/udp: Do not use MCAST_* for multicast on tvOS

Message ID 201608161753.13161.cehoyos@ag.or.at
State Accepted
Commit 3c821a1a7bf21536197e68453376242bb5832687
Headers show

Commit Message

Carl Eugen Hoyos Aug. 16, 2016, 3:53 p.m. UTC
Hi!

Attached patch fixes ticket #5774.

Please comment, Carl Eugen
From 263e0b0f95bd20e557e53bee91d0a9488bf6a76e Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <cehoyos@ag.or.at>
Date: Tue, 16 Aug 2016 17:51:03 +0200
Subject: [PATCH] lavf/udp: Do not use MCAST_* for multicast on tvOS.

Fixes ticket #5774.
---
 libavformat/udp.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Comments

Carl Eugen Hoyos Sept. 3, 2016, 1:24 p.m. UTC | #1
2016-08-16 17:53 GMT+02:00 Carl Eugen Hoyos <cehoyos@ag.or.at>:

> Attached patch fixes ticket #5774.

Patch applied.

Carl Eugen
diff mbox

Patch

diff --git a/libavformat/udp.c b/libavformat/udp.c
index 8699c1c..3835f98 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;