manpage: lua: minor fixes
client API: fix description of mpv_event.error field

The description was a left over from an earlier iteration of the API.
manpage: lua: rewrite event description

Using such a small table is not such a great idea, because you can't put
much information in it, even if you need to.
manpage: lua: document receiving of terminal messages
manpage: lua: move less important events to the end of the list
manpage: reformat property list

Use a list instead of a table. This makes it easier to provide extended
information about a property, and doesn't require you to fiddle with rhe
RST ASCII-art tables.

Also, extend some property descriptions.
command: fix metadata property

This crashed when retrieving the raw property value. Oops.
vo_wayland: silence shadowing warning
vo_opengl: make :srgb decompand the BT.709 values correctly

This is the same issue as addressed by 257d9f1, except this time for
the :srgb option as well. (257d9f1 only addressed :icc-profile)

The conditions of the srgb_compand mix() call are also flipped to
prevent an off-by-one error.
cocoa: fix deadlock during initialization

Thanks to @wm4 for catching the bug.

Fixes #405
build: bump libmpg123 version

The minimum required version was bumped in the old configure script, but
for the waf build system is was somehow forgotten or overlooked.
Probably happened while the waf build system was developed in a separate
branch.

Closes #546.
player: select subtitles added with sub_add

In particular, this affects drag & drop of subtitles, which uses sub_add
internally. This will make the subtitles show up immediately, instead of
requiring manual selection of the added subtitle.

Might be not so ideal when adding multiple subtitles at once, because
that leads to multiple sub_add commands, and will end up with the last
subtitle instead of the first selected. But this is a minor detail.
cocoa: fix deadlock during initialization [2]

Fixup commit for 20fa191ad.
build: disable clang's tautological compare warnings

This silences two non issues in the client.c file. Fixing them as clang would
want us to, would introduce security bugs and potential crashes.
sub: handle vobsub-in-mp4

The mplayer decoder (spudec.c) actually handled this. There was explicit
code for binary palettes (16 32 bit values), and the subtitle resolution
was handled by video resolution coincidentally matching the subtitle
resolution.

Whoever puts vobsub into mp4 should be punished.

Fixes the sample gundam_sample.mp4, closes github issue #547.
build: disable clang's tautological compare warnings [2]

Fixup 8009646583d523fc0.
build: Add -U__STRICT_ANSI__ to CFLAGS on Cygwin

Cygwin's libc (newlib) doesn't obey a lot of unix feature test macros,
including _GNU_SOURCE; as a result, a lot of functions and defines get
masked out -- important defines such as M_PI and strcasecmp. Work around
it by undefining __STRICT_ANSI__ on cygwin systems.

This will still cause compilation issues on any non-cygwin system that
uses newlib, but hopefully nobody does that, or if they do, they will
find this commit message and know to add -U__STRICT_ANSI__ to their
CFLAGS. Hopefully.
lua: make register_event() not overwrite previous event handler

Instead, chain them.

Note that there's no logic to prevent the other event handlers to be run
from an event handler (like it's popular in GUI toolkits), because I
think that's not very useful for this purpose.
lua: auto-load scripts from ~/.mpv/lua/

This is like passing them to --lua.
options: make --no-config block all auto-loaded configuration files

Until now, the --no-config was explicitly checked in multiple places to
suppress loading of config files.

Add such a check to the config path code itself, and refuse to resolve
_any_ configuration file locations if the option is set.

osc.lua needs a small fixup, because it didn't handle the situation when
no path was returned. There may some of such cases in the C code too,
but I didn't find any on a quick look.