GNOME Bugzilla – Bug 578378
multiudpsink on Vista is bound on IPv6 and fails when sending to IPv4 address
Last modified: 2009-04-08 21:35:20 UTC
Please describe the problem: When using udpsink (gst-plugins-good-0.10.14) on Vista, by default (and if you don't provide external fd) it creates socket with AF_INET6 family (line 611 of gstmultiudpsink.c) even if is not requested. When trying to specify host with IPv4 it fails sending ( sendto on line 397 of same file returns SOCKET_ERROR ) since it is already bound on IPv6. Steps to reproduce: simply execute gst-launch audiotestsrc ! udpsink host=1.2.3.4 port=5678 Actual results: no packet are sent to the host Expected results: UDP packet sent on host 1.2.3.4 Does this happen every time? Yes Other information: Probably adding a parameter to force socket binding on IPv4 would be an idea.
Coincidentally, I ran into this same problem yesterday, but on OSX, not on windows. Perhaps we should allocate two sockets (at least for OSes that require it).
Wim pointed out that this is a duplicate. *** This bug has been marked as a duplicate of 534243 ***