Fix hardware-acceleration broken by nonref_dr support.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34912 b3059339-0415-0410-9bf9-f77b7e298cf2
Remove pointless global variables.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34913 b3059339-0415-0410-9bf9-f77b7e298cf2
Add some additional checks to ensure subtractions do not overflow.

Patch by Benoît Thébaudeau [benoit thebaudeau advansee com].


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34914 b3059339-0415-0410-9bf9-f77b7e298cf2
Take start offset into account when calculating amount of audio data.

Patch by Benoît Thébaudeau [benoit thebaudeau advansee com]


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34915 b3059339-0415-0410-9bf9-f77b7e298cf2
Return a spf value even when srate is NULL.

Based on patch by Benoît Thébaudeau [benoit thebaudeau advansee com]


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34916 b3059339-0415-0410-9bf9-f77b7e298cf2
Make some tables const.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34917 b3059339-0415-0410-9bf9-f77b7e298cf2
Use more appropriate types.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34918 b3059339-0415-0410-9bf9-f77b7e298cf2
Some minor simplifications.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34919 b3059339-0415-0410-9bf9-f77b7e298cf2
Cosmetics: fix up indentations, get rid of a few lost tabs.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34920 b3059339-0415-0410-9bf9-f77b7e298cf2
More robust detection of SPARC CPUs.

Should also make it possible to cross-compile e.g.
a 32-bit SPARC build on SPARC64 by using -m32.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34921 b3059339-0415-0410-9bf9-f77b7e298cf2
Only try to build vo gl with X11/win32 backends if these were detected.

Fixes compilation with --disable-x11 or when X11 headers
are available but not the libraries.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34922 b3059339-0415-0410-9bf9-f77b7e298cf2
Remove unused code from mp_get_mp3_header.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34923 b3059339-0415-0410-9bf9-f77b7e298cf2
Improve filter on file selector's file list.

Sort the files globally, don't sort each block of files with the same
extension separately.

This is achieved by not using the glob() function for each extension
separately, but only once and filtering in one pass which should improve
the speed as well.


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


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34925 b3059339-0415-0410-9bf9-f77b7e298cf2
Use unsigned int instead of type casting.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34926 b3059339-0415-0410-9bf9-f77b7e298cf2
Do not needlessly modulate the texture color with the vertex color.

Might give some speedup on not-so-intelligent GL implementations
that also have very little compute power.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34927 b3059339-0415-0410-9bf9-f77b7e298cf2
Remove commented-out nonsense code.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34928 b3059339-0415-0410-9bf9-f77b7e298cf2
Make a glGetError function pointer available.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34929 b3059339-0415-0410-9bf9-f77b7e298cf2
Change some texture formats to synonyms that Mesa GLES accepts.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34930 b3059339-0415-0410-9bf9-f77b7e298cf2
Change if() condition into #if.

This avoids compile issues with some older SDL versions.


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