Ticket #5774: patchudptv.diff

File patchudptv.diff, 719 bytes (added by Carl Eugen Hoyos, 10 years ago)
  • libavformat/udp.c

    diff --git a/libavformat/udp.c b/libavformat/udp.c
    index 8699c1c..2753e5f 100644
    a b static int udp_set_multicast_sources(URLContext *h,  
    278278                                     int addr_len, char **sources,
    279279                                     int nb_sources, int include)
    280280{
    281 #if HAVE_STRUCT_GROUP_SOURCE_REQ && defined(MCAST_BLOCK_SOURCE) && !defined(_WIN32)
     281#if HAVE_STRUCT_GROUP_SOURCE_REQ && defined(MCAST_BLOCK_SOURCE) && !defined(_WIN32) && (!defined(TARGET_OS_TV) || !TARGET_OS_TV)
    282282    /* These ones are available in the microsoft SDK, but don't seem to work
    283283     * as on linux, so just prefer the v4-only approach there for now. */
    284284    int i;