gst/udp/gstudpsrc.c: Fix parsing of udp:// URIs containing IPv6 addresses.

Original commit message from CVS:
Patch by: Tero Saarni <tero dot saarni at gmail dot com>
* gst/udp/gstudpsrc.c: (gst_udpsrc_set_uri):
Fix parsing of udp:// URIs containing IPv6 addresses.
Fixes bug #541650.
This commit is contained in:
Tero Saarni 2008-07-05 19:01:28 +00:00 committed by Sebastian Dröge
parent 26c7c7c319
commit cf3286dac7
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,11 @@
2008-07-05 Sebastian Dröge <sebastian.droege@collabora.co.uk>
Patch by: Tero Saarni <tero dot saarni at gmail dot com>
* gst/udp/gstudpsrc.c: (gst_udpsrc_set_uri):
Fix parsing of udp:// URIs containing IPv6 addresses.
Fixes bug #541650.
2008-07-04 Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
* ext/gdk_pixbuf/gstgdkpixbuf.c: (gst_gdk_pixbuf_chain):

View file

@ -593,7 +593,7 @@ gst_udpsrc_set_uri (GstUDPSrc * src, const gchar * uri)
location = gst_uri_get_location (uri);
if (!location)
return FALSE;
colptr = strstr (location, ":");
colptr = strrchr (location, ':');
if (colptr != NULL) {
g_free (src->multi_group);
src->multi_group = g_strndup (location, colptr - location);