Call sanitize_os already in preinit function instead of only during init.

Possibly fixes some cases where Windows would still show a "No Disk" error dialog instead
of failing the open() function.


git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@35713 b3059339-0415-0410-9bf9-f77b7e298cf2
Fix a resource leak.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@35714 b3059339-0415-0410-9bf9-f77b7e298cf2
Support FFmpeg 012v decoder.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@35715 b3059339-0415-0410-9bf9-f77b7e298cf2
Add a message indicating start of initialization of X.


git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@35716 b3059339-0415-0410-9bf9-f77b7e298cf2
Make variables static that are only used inside the file.

Additionally, remove unnecessary initialization.


git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@35717 b3059339-0415-0410-9bf9-f77b7e298cf2
Remove unnecessary initialization.


git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@35718 b3059339-0415-0410-9bf9-f77b7e298cf2
Don't unconditionally set gtkDXR3Device.

Without CONFIG_DXR3 it's not part of gui_opts[]
and won't get freed then.


git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@35719 b3059339-0415-0410-9bf9-f77b7e298cf2
Relocate GTK initialization.

Initialize after X (i.e. lower level first).


git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@35720 b3059339-0415-0410-9bf9-f77b7e298cf2
Cosmetic: Add and adjust comments.


git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@35721 b3059339-0415-0410-9bf9-f77b7e298cf2
Fix compilation with current FFmpeg.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@35722 b3059339-0415-0410-9bf9-f77b7e298cf2
Pass parameter instead of using global variable.


git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@35723 b3059339-0415-0410-9bf9-f77b7e298cf2
Remove unused declarations.


git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@35724 b3059339-0415-0410-9bf9-f77b7e298cf2
Cosmetic: Harmonize parameter names.

Use 'display' for Display pointers, 'Win' for Window
and 'win' for wsTWindow pointers.


git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@35725 b3059339-0415-0410-9bf9-f77b7e298cf2
Cosmetic: Use lower case parameter name.


git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@35726 b3059339-0415-0410-9bf9-f77b7e298cf2
Cosmetic: Adjust parameter names to r35725 and r35726 harmonization.

Additionally, add some blank lines.


git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@35727 b3059339-0415-0410-9bf9-f77b7e298cf2
Use sizeof() instead of numeric constant.


git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@35728 b3059339-0415-0410-9bf9-f77b7e298cf2
Replace stderr output by mp_msg() error messages.

Additionally, enable translation of error text
and add doxygen comment.


git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@35729 b3059339-0415-0410-9bf9-f77b7e298cf2
Restore GUI's X error handler after gtk_init().

GDK sets its own handler.


git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@35730 b3059339-0415-0410-9bf9-f77b7e298cf2
Remove Display parameter from wsEvents().

It is common practice with the ws functions to use the global wsDisplay.


git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@35731 b3059339-0415-0410-9bf9-f77b7e298cf2
Cosmetic: Use parameter name 'window' for a GtkWindow.


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