From cf3286dac701e58e9994f1a5e9f728cdb8ffe342 Mon Sep 17 00:00:00 2001 From: Tero Saarni Date: Sat, 5 Jul 2008 19:01:28 +0000 Subject: gst/udp/gstudpsrc.c: Fix parsing of udp:// URIs containing IPv6 addresses. Original commit message from CVS: Patch by: Tero Saarni * gst/udp/gstudpsrc.c: (gst_udpsrc_set_uri): Fix parsing of udp:// URIs containing IPv6 addresses. Fixes bug #541650. --- gst/udp/gstudpsrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gst/udp') diff --git a/gst/udp/gstudpsrc.c b/gst/udp/gstudpsrc.c index 1c028bd3..31e5e30d 100644 --- a/gst/udp/gstudpsrc.c +++ b/gst/udp/gstudpsrc.c @@ -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); -- cgit