Do not use non-literal arguments for mp_msg format string

Make the code easier to review and more robust against
future changes.

Fix ticket #2173



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36740 b3059339-0415-0410-9bf9-f77b7e298cf2
Fix bug with option '-fontconfig' and ass subtitles.

The condition for using fontconfig for ass subtitles
is font_fontconfig >= 0. Pass this to libass.

Option '-nofontconfig' won't have an effect else.


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

With CONFIG_FREETYPE set, *.desc font files can't be changed with
immediate effect which might confuse the GUI user.

It is still possible to select *.desc by the "all files" filter though.


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


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36743 b3059339-0415-0410-9bf9-f77b7e298cf2
Don't unnecessarily load a font.

MPlayer will carry it out, so there is no need to load at guiInit()
or GUI_PREPARE.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36744 b3059339-0415-0410-9bf9-f77b7e298cf2
subreader: Fix compilation without fribidi.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36745 b3059339-0415-0410-9bf9-f77b7e298cf2
Enable specifying a font file in the GUI preferences.

This has been broken since the introduction of Fontconfig.

Since Fontconfig is selecting fonts by font patterns and the GUI does so
by selecting a font file, it is necessary to temporarily disable
fontconfig font handling if there is a directory separator character
found in the name (or pattern) of the font to be used, i.e. assume the
font name to be a pattern if and only if it doesn't contain a directory
separator character.

Thus set option 'fontconfig' depending on font_name. Set it in guiInit()
for the font possibly given in a configuration file or on the command
line, and set it in mplayerLoadFont() whenever it is affected by GUI
preferences settings.

(Although the font selection dialog only allows files to be selected,
it is possible to simply enter a fontconfig font pattern in the
preferences' text entry field - or to enter it directly into the GUI
configuration file or to specify on the command line, both of which
always is possible.)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36746 b3059339-0415-0410-9bf9-f77b7e298cf2
Don't unnecessarily load a font.

Leave it to MPlayer to carry it out.

This improves speed dramatically and allows changing font related
settings during playback of a video with immediate effect.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36747 b3059339-0415-0410-9bf9-f77b7e298cf2
Fix issue with font file selector.

After selection, playing state doesn't need to be set GUI_STOP.

This allows changing the font during playback of a video with
immediate effect.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36748 b3059339-0415-0410-9bf9-f77b7e298cf2
Revise non-FreeType part of mplayerLoadFont().

Use free_font_desc() instead of freeing by ourselves.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36749 b3059339-0415-0410-9bf9-f77b7e298cf2
Revise non-FreeType part of mplayerLoadFont().

Fix memory leaks.

Free return value of get_path() and old font_name.


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


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36751 b3059339-0415-0410-9bf9-f77b7e298cf2
Revise non-FreeType part of mplayerLoadFont().

Use setdup() which does the same.


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


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36753 b3059339-0415-0410-9bf9-f77b7e298cf2
Relocate mplayerLoadFont() code.

Add a mplayer() instruction MPLAYER_LOAD_FONT
and make it part of this function.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36754 b3059339-0415-0410-9bf9-f77b7e298cf2
configure: disable internal libmpeg2 by default.

While the last tests showed that it can be slightly
faster in some cases, the difference should not be
relevant to the majority of users.
In addition, the code is of not particularly high
quality, so I consider it better/safer to have it
disabled by default.
Removing the code after the next release is a possible
future action.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36755 b3059339-0415-0410-9bf9-f77b7e298cf2
stream.c: remove pointless NULL check.

Since it currently is a fixed-size array it can never be NULL.
But even if this was changed, this check has no real value:
it should still only be possible in case of an obvious code bug
during development and the crash it would cause would be easy enough
to debug.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36756 b3059339-0415-0410-9bf9-f77b7e298cf2
Fix some format string mismatches.

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


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@36758 b3059339-0415-0410-9bf9-f77b7e298cf2
Move up entry "external audio" in the context menu.

Additionally, add a separator, because this and the
following entries don't start playback (as the entries
above do).


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