Commit 3c821a1a authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

lavf/udp: Do not use MCAST_* for multicast on tvOS.

Fixes ticket #5774.
parent 2dfd0f4b
...@@ -42,6 +42,10 @@ ...@@ -42,6 +42,10 @@
#include "os_support.h" #include "os_support.h"
#include "url.h" #include "url.h"
#ifdef __APPLE__
#include "TargetConditionals.h"
#endif
#if HAVE_UDPLITE_H #if HAVE_UDPLITE_H
#include "udplite.h" #include "udplite.h"
#else #else
...@@ -278,7 +282,7 @@ static int udp_set_multicast_sources(URLContext *h, ...@@ -278,7 +282,7 @@ static int udp_set_multicast_sources(URLContext *h,
int addr_len, char **sources, int addr_len, char **sources,
int nb_sources, int include) 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 /* 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. */ * as on linux, so just prefer the v4-only approach there for now. */
int i; int i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment