Ticket #3873: multiple-udp-socket.patch

File multiple-udp-socket.patch, 1.1 KB (added by Dave <megadave@…>, 13 years ago)
  • libs/libmythlivemedia/groupsock/GroupsockHelper.cpp

    diff -ur mythtv.orig/libs/libmythlivemedia/groupsock/GroupsockHelper.cpp mythtv/libs/libmythlivemedia/groupsock/GroupsockHelper.cpp
    old new  
    560560      testAddr.s_addr = our_inet_addr("228.67.43.91"); // arbitrary
    561561      Port testPort(15947); // ditto
    562562     
     563      ReceivingInterfaceAddr = INADDR_ANY;
     564
    563565      sock = setupDatagramSocket(env, testPort);
    564566      if (sock < 0) break;
    565567     
  • libs/libmythtv/iptv/iptvfeederudp.cpp

    diff -ur mythtv.orig/libs/libmythtv/iptv/iptvfeederudp.cpp mythtv/libs/libmythtv/iptv/iptvfeederudp.cpp
    old new  
    6969    if (!InitEnv())
    7070        return false;
    7171   
     72    ReceivingInterfaceAddr = our_inet_addr(parse.host().latin1());
     73
    7274    Groupsock *socket = new Groupsock(*_live_env, addr, parse.port(), 0);
    7375    if (!socket)
    7476    {