[Bug 595840] setting udpsink's host property to "localhost" on ubuntu 9.04 (jaunty) does not work

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Mar 25 13:05:39 PDT 2011

  GStreamer | gst-plugins-good | git

--- Comment #11 from Tristan Matthews <le.businessman at gmail.com> 2011-03-25 20:05:32 UTC ---
To summarize, udpsink's "host" property defaults to localhost, which on Ubuntu
9.04 and later resolves to an IPv6 address first by default (note that
gst_udp_get_addr in gstudpnetutils.c returns the first IPv4 OR IPv6 address
that it finds for a given hostname).

udpsrc meanwhile has a default "multicast-group" property of "", which
is IPv4.

Therefore, on Ubuntu, udpsink will default to localhost over IPv6 and udpsrc
will default to IPv4, meaning that running the server and client examples in
gst-plugins-good, or doing any loopback tests with the defaults (i.e. not
forcing either IPv4 or IPv6 addresses) will quietly fail. I'm not sure if
there's a reasonable compromise for this, the workarounds being:

a)set host= on the udpsinks


b)set host=localhost.localdomain on the udpsinks


c)set multicast-group=:: on the udpsrcs

Here's my current /etc/hosts file:    tchip   # Added by NetworkManager       localhost.localdomain   localhost
::1     tchip   localhost6.localdomain6 localhost6       tchip

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the gstreamer-bugs mailing list