mediacodec: fix jni LocalRef leaks

We can only have 512 LocalRefs, so don't leak them.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
access_mms: fix linkage on OS/2

-----
  CCLD     libaccess_mms_plugin.la
weakld: error: Unresolved symbol (UNDEF) '_vlc_poll'.
weakld: info: The symbol is referenced by:
    P:\tmp\ldconv_libaccess_mms_plugin_la-mmstu_38da54703f4316fd10.obj
Ignoring unresolved externals reported from weak prelinker.
Error! E2028: _vlc_poll is an undefined reference
file P:/tmp\ldconv_libaccess_mms_plugin_la-mmstu_38da54703f4316fd10.obj(ldconv_libaccess_mms_plugin_la-mmstu_38da54703f4316fd10.obj): undefined symbol _vlc_poll
-----

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
XCB/XVideo: request correct picture format from the adaptor

This is bug compatibility for XVideo drivers that scale the whole
picture rather than the source rectangle (the XVideo 2 specification
does not really state which behaviour is correct).

This works because the video output core only applies crop parameters
*after* the vout display plugin is activated. This is brittle though:
the A/R and crop parameters should probably be passed as configuration
like zoom.
vout: document the priority rules
Wayland/SHM: fix priority
vout: update priority rules to account for SPU blending

This moves Direct3D on Windows (with no effects on actual order) and
OpenGL on Linux/BSD (now exceeding XVideo thanks shaders and blending).

It remains to be decided whether OpenGL should be increased on Windows;
in principles, it should have a higher priority than D2D and DDraw.
XCB/XVideo: add a TODO
swscale: remove constant parameter
Revert "swscale: scale the whole picture (fixes #12085)"

This reverts commit 44d4685b1ca4d1b58c4ce77d479103d482be5d14.
When using a scaling algorithm other than nearest neighbor, this change
caused the picture padding to be scaled with the video.
swscale: scale within the crop area, not top-left (really fixes #12085)

Unfortunately, this can cause a slight offset of the colour planes if the
top/left crop offset is not a multiple of the subsampling ratio.
Qt: frame around speed selector is unnecessary

Or just ugly in some themes
Qt: fix frame around time in toolbar editor

Close #12888
extras: fix iOS prefix for AArch64
contrib/harfbuzz: work-around build system stupidity breaking clang compilation
Qt: avoid crash in resume dialog

I don't really see how this can happen, but it should fix it.

Close #13190
faad: always drop byte of padding (fixes #5257)

Also covers #2575 and #11514
Revert "faad: drop byte of padding for raw streams"

This reverts commit 937911d559051522554ac6f0d6d35fc0836d541a which was
obsoleted by commit 0fd580b8c0f1590d2b01a5062b4a1d616cd80e1c.
playlist: move playlist controls to vlc_playlist.h
Win32: don't build NPAPI in package-win-common

Many people don't care about NPAPI and it's hard to build
lua/playlist: do not handle impossible error