[FFmpeg-devel] UDP multicasts mixed up on receive due to wrong bind()

Luca Abeni lucabe72
Thu Oct 16 19:19:59 CEST 2008

Hi Laurent,

Laurent wrote:
>> I am asking because some years ago I worked on a multicast-enabled
>> application on windows, and I remember that if bind and join were done
>> in a particular order then binding the multicast group did not fail...
>> Maybe I am misremembering, or maybe windows behaviour changed.
>> But before introducing system-dependent code I'd like to really test
>> all the possibilities ;-)
> Joining the multicast group before binding the port will fail.
Ok, thanks again for the info... Now I remember why windows is not fun :(

So, I guess the only solution is to have a system-dependent join or to
try joining the multicast group first and then INADDR_ANY if the first
join fails.

Can someone send a patch which has been tested on windows?


More information about the ffmpeg-devel mailing list