Real demuxer seeking fixes.

Audio should seek to video keyframe position to minimize
initial desync.
Also, reset EOF if we know there will be more data.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35985 b3059339-0415-0410-9bf9-f77b7e298cf2
Allow audio/video queues to fill up a bit more right after seeking.

Bad interleaving can have more extreme effects when seeking
to random locations.
Fixes bug #2128.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35986 b3059339-0415-0410-9bf9-f77b7e298cf2
Support broken icy-metaint response from QuickTime Streaming Server.

The full version string is "QuickTime Streaming Server 6.1.0/532".
It sends a HTTP response header that contains an MP3 header!
Fixes bug #2133.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35987 b3059339-0415-0410-9bf9-f77b7e298cf2
Handle the severely broken headers QuickTime Streaming Server sends.

Instead of ending the header with \r\n\r\n it ends with
\r\n<4 byte MP3 header>\r\n.
And programs like wget just silently accept this without even
printing a warning!!

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35988 b3059339-0415-0410-9bf9-f77b7e298cf2
Try to fix performance for -vo gl on OSX with planar YUV.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35989 b3059339-0415-0410-9bf9-f77b7e298cf2
build: Fix conditional compilation of tests and tools.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35990 b3059339-0415-0410-9bf9-f77b7e298cf2
build: Drop mp_msg dependencies for codec-cfg-test.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35991 b3059339-0415-0410-9bf9-f77b7e298cf2
build: Drop unnecessary -Iffmpeg from codec-cfg tools compile command.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35992 b3059339-0415-0410-9bf9-f77b7e298cf2
build: Add "-D_XOPEN_SOURCE=600 -I." to HOSTCFLAGS.

These flags are required to build some of the host tools.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35993 b3059339-0415-0410-9bf9-f77b7e298cf2
build: Compile all codec-cfg* host tools with one generic rule.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35994 b3059339-0415-0410-9bf9-f77b7e298cf2
build: Split mp_msg-related object files and link libraries.

This avoids a host of problems when GNU Make starts mucking with -l flags.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35995 b3059339-0415-0410-9bf9-f77b7e298cf2
build: Run tests, tools, etc. clean targets as dependencies of clean.

The clean target should remove everything that make created,
so don't run these targets as dependencies of distclean.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35996 b3059339-0415-0410-9bf9-f77b7e298cf2
Add missing strings.h #includes for strcasecmp().

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35997 b3059339-0415-0410-9bf9-f77b7e298cf2
Avoid usage of obsolete and BSD-specific "struct timezone".

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35998 b3059339-0415-0410-9bf9-f77b7e298cf2
Add _BSD_SOURCE #define for getpagesize().

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35999 b3059339-0415-0410-9bf9-f77b7e298cf2
Add _BSD_SOURCE #define for inet_aton().

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36000 b3059339-0415-0410-9bf9-f77b7e298cf2
Add _BSD_SOURCE #define for struct hostent and struct ip_mreq.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36001 b3059339-0415-0410-9bf9-f77b7e298cf2
configure: Drop _BSD_SOURCE from CPPFLAGS for non-gcc compilers.

The flag was added for old ICC versions and is unlikely to be a correct fix.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36002 b3059339-0415-0410-9bf9-f77b7e298cf2
configure: Set CPPFLAGS to enable commonly used system features

MPlayer relies on POSIX, XOPEN and C99 features being available. However,
the necessary CPPFLAGS to enable those features are not set explicitly;
they are just used in some configure tests.  Set flags for these features
explicitly in order to ensure they are always available.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36003 b3059339-0415-0410-9bf9-f77b7e298cf2
configure: Simplify some checks that set feature flags.

The flags are now set globally, no need to set them in each test.

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