[MPlayer-users] Re: Couldn't resolve name for AF_INET6: 144.122.56.15

Reshat Sabiq sabiq at csociety.org
Sat Dec 10 21:24:28 CET 2005


On Fri, Dec 09, 2005 at 10:25:23AM +0100, Dominik 'Rathann' Mierzejewski
wrote:
> On Friday, 09 December 2005 at 08:07, Rich Felker wrote:
> > On Fri, Dec 09, 2005 at 12:59:44AM -0600, Reshat Sabiq wrote:
> > > On Thu, 2005-12-08 at 23:58 -0600, Reshat Sabiq wrote:
> > > > On Fri, 2005-12-09 at 13:53 +0800, qwen dux wrote:
> > > > > I player the stream normally,may be you don't installed win32
> > > > > codec,because the video codec is wmv9,you can download the win32 codec
> > > > > on www.mplayerhq.hu,and rebuild the source.
> > > > You didn't get an error dialing when doing:
> > > > gmplayer mms://144.122.56.15/ODTU-TV
> > > > ?
> > > > 
> > > > I always get 
> > > > Couldn't resolve name for AF_INET6: 144.122.56.15
> > > > error dialog from gmplayer on mms streams.
> > > To clarify, after i close the error dialog, i'm able to watch the
> > > stream. But my question is: how to make it not show up at all?
> > > 
> > > Same for this:
> > > gmplayer http://70.84.33.194:8150/listen.pls
> > > 
> > > P.S. Maybe i need to try building from source again, as i've been doing
> > > in the past.
> > 
> > Disabling ipv6 support at compiletime will stop the message from
> > appearing, but like I said it's a bug that it pops up as an error
> > message. Hopefully someone who knows the gui code will fix it..
> 
> Why disable?
> $ gmplayer -prefer-ipv4
> should do it.

>
> But it's still incorrect. If you didn't see the discussion on
> #mplayerdev, here it is:

<@dalias> reynaldo, if ipv6 is enabled, what the network code _should_ do is:
<@dalias> first try the host string as an ipv4 or ipv6 numeric address (order these are tried doesn't matter)
<@dalias> then try hostname lookup for ipv6/v4 in the user's preferred order
<@dalias> however what it does now:
<@dalias> try as numeric ip in perferred address family
<@dalias> try as hostname in preferred address family
<@dalias> try as numeric ip in other address family
<@dalias> try as hostname in other address family
<@dalias> and if the first hostname lookup fails
<@dalias> it mp_msg's an ERROR
<@dalias> which makes the gui popup a window
<@dalias> so if ipv6 is your preferred address family
<@dalias> and you use an ipv4 numeric host
<@dalias> e.g. http://1.2.3.4
<@dalias> the gui will always print an error that it failed to lookup the name as ipv6 hostname
<@dalias> and it does so in the evil popup box
<@reynaldo> humm, that mp_msg wrapper is disabled on cvs
<@reynaldo> as far as i can tell
<@dalias> the error dialog one?
<@reynaldo> yep, just saw it a few hours ago
<@dalias> in any case it shouldn't print an error message even on console
<@reynaldo> yep, youre right ;)
<@dalias> if the text is parsable as an ipv4 or ipv6 numeric address it should never try any host lookups at all
<@dalias> and in fact those lookups are massively slowing it down if your dns is slow

> Rich
>

It's good that we have a work-around and understanding of the core issue. Is anybody working on checking in the 
fix, as described in #mplayerdev discussion above?

Thanks.




More information about the MPlayer-users mailing list