[gstreamer-bugs] [Bug 534243] udpsink no longer supports IPv4 on Windows, only IPv6

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Thu Apr 9 06:50:24 PDT 2009


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=534243

  GStreamer | gst-plugins-good | Ver: git




------- Comment #15 from Bruno Santos  2009-04-09 13:51 UTC -------
That depends if you pass the AF_UNSPECIEF o(In reply to comment #14)
> (In reply to comment #11)
> > Created an attachment (id=111556)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=111556&action=view) [edit]
> > fix for Windows no supporting IPv6 dual stack
> > Some cosmetic improvements to the previous fix.
> 
> Not completely correct. Infact in function gst_udp_get_addr (file
> gstudpnetutils.c) you have ambiguity due to the fact that getaddrinfo could
> return two entry one with IPv6 address and one with IPv4 address.
> The real case is "localhost" (that is the default host) that returns two struct
> addrinfo on Vista : the first one with AF_INET6 and the second one with
> AF_INET.
> If you want to use IPv4 that fails since it returns IPv6 address (::1 instead
> of 127.0.0.1)
> 

That can be solved by passing a parameter specifying the family:

AF_UNSPEC -> Any
AF_INET   -> IPv4
AF_INET6  -> IPv6


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=534243.




More information about the Gstreamer-bugs mailing list