some relevant code from vlc src/network/udp.c : #ifdef WIN32 # define if_nametoindex( str ) atoi( str ) #else # include <unistd.h> # ifdef HAVE_NET_IF_H # include <net/if.h> # endif #endif #if defined (WIN32) && !defined (MCAST_JOIN_SOURCE_GROUP) # warning Your C headers are out-of-date. Please update. #ifdef MCAST_JOIN_SOURCE_GROUP ... setsockopt (fd, level, src ? MCAST_JOIN_SOURCE_GROUP : MCAST_JOIN_GROUP, #endif If I understand well the code, under windows it does not work completely, the setsockopt ( MCAST_JOIN_GROUP) works with a recent compiler, but the string --miface=br0.2222 for example does not pass the if_nametoindex function. Maybe if the number of the interface is used --miface=5 it works. I have access to multicast udp only from linux machines, I cannot immediately help with windows debugging. We may try to setup a windows machine if it is indispensable for the inclusion of the patch. On Tue, Jan 3, 2012 at 4:37 AM, Michael Niedermayer <michaelni@gmx.at> wrote: On Tue, Jan 3, 2012 at 4:37 AM, Michael Niedermayer <michaelni@gmx.at> wrote:
On Mon, Jan 02, 2012 at 03:51:08PM +0100, Tudor SUCIU wrote:
By duplicate I meant the functionality, not the code. All the patch is just a big function call in order to MCAST_JOIN_GROUP so I don't think there is any copyright to be discussed.
I don't know the implications of +#include <net/if.h> for windows builds. Maybe it needs to be put in network.h, I need an input from the list for this point.
how does vlc handle it ? does it include that header unconditionally ?
[...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Why not whip the teacher when the pupil misbehaves? -- Diogenes of Sinope
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel