Opened 17 years ago

Last modified 13 years ago

#854 new defect

Mplayer doesn't resolve IPv6 literal address in URLs

Reported by: juhamatti.nikander@… Owned by: reimar
Priority: very important Component: core
Version: 1.0rc1 Severity: blocker
Keywords: Cc: shingen20092009@…
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

Mplayer doesn't resolve IPv6 literal addresses in URLs.

http://en.wikipedia.org/wiki/Ipv6#Literal_IPv6_Addresses_in_URLs

For example,

test@testmachine:~$ mplayer rtp://radio.unfix.org:1833
MPlayer 1.0rc1-4.1.2 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) XP 1900+ (Family: 6, Model: 6, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

Playing rtp://radio.unfix.org:1833.
STREAM_RTP, URL: rtp://radio.unfix.org:1833
Counldn't resolve name: radio.unfix.org
rtp_streaming_start failed
File not found: 'radio.unfix.org:1833'
Failed to open rtp://radio.unfix.org:1833.

Exiting... (End of file)

Resolving manually,

test@testmachine:~$ host radio.unfix.org
radio.unfix.org has IPv6 address ff3e:30:2001:7b8:20d:0:8008:ad10

Then with literal form,

test@testmachine:~$ mplayer rtp://[ff3e:30:2001:7b8:20d:0:8008:ad10]:1833
MPlayer 1.0rc1-4.1.2 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) XP 1900+ (Family: 6, Model: 6, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

Playing rtp://[ff3e:30:2001:7b8:20d:0:8008:ad10]:1833.
STREAM_RTP, URL: rtp://[ff3e:30:2001:7b8:20d:0:8008:ad10]:1833
Counldn't resolve name: ff3e:30:2001:7b8:20d:0:8008:ad10
rtp_streaming_start failed
File not found: '[ff3e:30:2001:7b8:20d:0:8008:ad10]:1833'
Failed to open rtp://[ff3e:30:2001:7b8:20d:0:8008:ad10]:1833.

Exiting... (End of file)

If this will bug will be fixed, please remember to check also short literal notation in which subsequent groups of zeroes can be omitted once with ::

see http://en.wikipedia.org/wiki/Ipv6#Notation

Change History (2)

comment:1 by juhamatti.nikander@…, 17 years ago

Severity: normalblocker

comment:2 by shingen20092009@…, 13 years ago

Cc: shingen20092009@… added
op_sys: AllMinGW
rep_platform: AllPC (x86)
Note: See TracTickets for help on using tickets.