GNOME Bugzilla – Bug 541650
udpsrc fails to parse URI with IPv6 address
Last modified: 2008-07-05 19:00:56 UTC
Please describe the problem: I'm using sdpdemux to open stream with IPv6 address. It sets URI like udp://ff15:0:0:0:0:0:1:0600:10122 where 10122 is the port number. When the URI is parsed by udpsrc it will try find the port number by searching for the first colon (:) from left which is ok for IPv4 dotted decimal notation but fails on IPv6 notation. Steps to reproduce: Set URI with IPv6 address to udpsrc Actual results: opening socket fails Expected results: Does this happen every time? yes Other information: see attached .sdp file and suggested patch for udpsrc.
Created attachment 114019 [details] sdp file with ipv6 address
Created attachment 114020 [details] [review] suggested fix
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.