- Bump Medialibrary Hash
- ML: refactor EntryPoint(s) to Root(s)
This is to follow the renaming that happened in the MediaLibrary
- ML: Update after ML API incoherence fix.
This concerns a confusion with Subscriptions and Services
and especially the cacheSize / cachedMedia which was messier before the
recent update.
Fixes#3027
When calling NewStringUTF with an invalid UTF string it will abort
instead of returning NULL. This wrapper checks the validity of the UTF
string before calling NewStringUTF.
This is a partial revert of the following commits
- b775dbba3a "build: fix ODR violation"
- b9df53313b "Use libc++ as static library"
UnsatisfiedLinkError with c++_shared should be fixed since we now use the last
NDK version and we dropped old android versions that triggered this crash.
This commit remove the ugly jniloader hack.
Here are the list of .so that are now shipped within the APK:
- c++_shared.so (from the NDK)
- libvlc.so (all VLC modules, VLC/LibVLC symbols) => link with c++_shared.so
- libvlcjni.so (all JNI symbols) => link with libvlc.so
- libmla.so (medialibrary, optional) => link with libvlc.so and c++_shared.so
The APK size won't change with this commit (the difference of .so sizes is
negligible).
This commit fixes the regression introduced by
b9df53313b that switched to the c++ static
runtime and caused exceptions to be uncaught.
As https://developer.android.com/ndk/guides/cpp-support.html#static_runtimes
explains it, one process should *NEVER* link with more than one shared
libraries that link with the c++ static library.
To fix this issue: libmla and libvlc are now static and linked together as
libvlcjni.so with the c++ static library.
Written with Bastion Penavayre and Thomas Guillem for making medialibrary build on Android
medialibrary: use clang
MediaWrapper class is now integrated into medialibrary module