[FFmpeg-devel] [PATCH] always enable reuse for reading multicast udp

aviad rozenhek aviadr1
Tue Sep 14 23:42:03 CEST 2010

on certain OSs, opening a multicast UDP socket for reading does not enable
the "reuse" socket option by default. supposedly this is a security feature.
an example for this is windows server 2003.
on such a system, opening two instances of ffplay for a multicast stream
will not work, as the second ffplay will be rejected.

a knowledgeable user can overcome this by explicitly adding the ?reuse=1
flag to the URL.
however I find it more natural to enable this option by default, and leaving
the user the option to explicitly forbid reusing multicast sockets.

the attached patch achieves $subj

Aviad Rozenhek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: enable_reuse_for_multicast_udp.diff
Type: text/x-patch
Size: 1328 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100914/b5f74ced/attachment.bin>

More information about the ffmpeg-devel mailing list