stream/tcp: Check that host object has the right AF before connect

Avoid trying bogus IPv6 adresses on systems that only
have gethostbyname function. Currently we would copy the
IPv4 address into the first part of the IPv6 and then try
to connect to that. The connection attempt can take a long
time.

Tested-by: Erik Auerswald >auerswal unix-ag uni-kl de<
Patch-by: >aplattner nvidia com<



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36356 b3059339-0415-0410-9bf9-f77b7e298cf2
Disable aspect ratio menu in the absence of video playback.

This is analogous to the video size menu.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36357 b3059339-0415-0410-9bf9-f77b7e298cf2
Enable the change of the movie aspect ratio on the fly.

The change of the ratio won't restart the movie any longer now.

Based on a patch by Stephen Sheldon, sfsheldo gmail com.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36358 b3059339-0415-0410-9bf9-f77b7e298cf2
Cosmetic: Adjust indent.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36359 b3059339-0415-0410-9bf9-f77b7e298cf2
Calculate aspect ratio by ourselves.

sh_video->aspect is a prescaled value that is useless in case there is
more than one video to be played and the aspect ratio of a previous one
has been changed.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36360 b3059339-0415-0410-9bf9-f77b7e298cf2
Cosmetic: Adjust indent.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36361 b3059339-0415-0410-9bf9-f77b7e298cf2
build: Define _BSD_SOURCE for gethostbyname2

This broke in 1dca91d when a bunch of source #defines were
defined unconditionally for all source files.

Restore IPv6 support in stream/tcp module by handling it
analog to how strsep was handled in 11b73048 .

Patch-by: Erik Auerswald >auerswal unix-ag uni-kl de<



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36362 b3059339-0415-0410-9bf9-f77b7e298cf2