GLX: glXSwapIntervalEXT() returns void so ignore return value

glXSwapIntervalEXT() does not return a value, contrary to the
SGI equivalent. In case of error, the X11 error handler is used.

This patch fixes compilation with conforming headers. It should still
be compatible with buggy Mesa headers where 'int' is returned.

For reference, see the specification here:
http://www.opengl.org/registry/specs/EXT/swap_control.txt
http://www.opengl.org/registry/api/glxext.h
(cherry picked from commit 9cf66c2856ab3a209fe15ec5662a8cd927ee20bc)
macosx: set b_nativeFullscreenMode to true only if we really use this mode

This simplifies the code in several lines.
(cherry picked from commit de742db20a39f116ca2505926fe1a0e9c20de47a)

Signed-off-by: David Fuhrmann <david.fuhrmann@googlemail.com>
macosx: remove custom orderOut: implementation

The if condition was only true in a very very rare case, and even then the code is
incorrect (e.g. when the detached window is in fullscreen and the user closes
the main window).
(cherry picked from commit 80e730f1e4d67f4a00428220ed170d477c85032a)

Signed-off-by: David Fuhrmann <david.fuhrmann@googlemail.com>
macosx: fix two warnings
(cherry picked from commit 2368d54953fc4e7731d29ae8749c5ffb3ecb03b8)

Signed-off-by: David Fuhrmann <david.fuhrmann@googlemail.com>
macosx: native fullscreen mode is not default anymore
(cherry picked from commit 9dfcc9e548abefb260a10df57f79151790a1bf03)

Signed-off-by: David Fuhrmann <david.fuhrmann@googlemail.com>
lua: finish reading data from hung up client before deleting it

In particular this happens when piping commands into stdin
lua: do delete stdin/stdout client

This fixes an endless loop when piping commands to stdin with echo
for example
On the road to 2.0.2
Update CVE numbers
macosx: make sure that the http interface (and other clients) can toggle the fullscreen mode when using VLC's fullscreen implementation (close #6009)
(cherry picked from commit 2a2bb7af2abb8d060d0cd8b79528655d76463c87)
Qt: fix directsound simple prefs

Close #6424
(cherry picked from commit f7f78e8a6d1019a03b86947552dbb26015c93f20)

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Fix OSD when auto-scaling

Close #6423
(cherry picked from commit 36641267bcfd98f26eaa0ae98ba7ac5d80d4184b)

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
MKV: Use the appropriate time value to avoid loops

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit fbdbd7dab2f509c6746e9077b060098b9d7a164a)

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
mp4: fix NULL dereference (should fix LP#936488)
(cherry picked from commit 38a4fd744aee8b52d5cd3f5424b64b6d37ded6c0)

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
libmp4: fix 'mfhd' parsing

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 0b1b7516b965fa87c295eb0e7b9aa249f917e4e7)

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Fix next/prev uid segment linking in MKV

This still doesn't work with ordered chapters though.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 50f3a9b9b79a27cd1d1d5e1fee583bf06edf9f85)

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Fix misleading Playback Speed string on menu.

When increasing speed to 1.50 (command + =), '1.50x' is shown on OSD, but '10x' is shown on menu (Playback -> 'Playback Speed').

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
(cherry picked from commit 70a5e26593b671ab5d267b3c527fda4ba83deae1)
OpenGL: use more accurate YUV->RGB matrixes

Coeffs have been recomputed.

Close #6132
(cherry picked from commit a712e052fbba82c04c3d5f193dfe625bb5b242be)

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
macosx: fix another rare crash on exit
(cherry picked from commit bf916c3520997102ff862887065ec38f93efada2)

Signed-off-by: David Fuhrmann <david.fuhrmann@googlemail.com>
macosx: do not abuse "autoscale" to implement a fit to screen feature
(cherry picked from commit 3646cf4340c3cb25b23fbb2e7376dc86424f04ae)

Signed-off-by: David Fuhrmann <david.fuhrmann@googlemail.com>