[Android] medialibrary: Use utils::jni::string for native strings
Hugo Beauzée-Luyssen
git at videolan.org
Mon Sep 27 09:18:54 UTC 2021
vlc-android | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Sep 24 13:58:17 2021 +0200| [ae76af2ec5e6d982ea02685991982bd2b2d9a3ef] | committer: Nicolas Pomepuy
medialibrary: Use utils::jni::string for native strings
This removes the need to manually invoke DeleteLocalRef and fixes a leak
on error in mediaToMediaWrapper
> https://code.videolan.org/videolan/vlc-android/commit/ae76af2ec5e6d982ea02685991982bd2b2d9a3ef
---
medialibrary/jni/AndroidMediaLibrary.cpp | 52 ++++++++----------
medialibrary/jni/medialibrary.cpp | 16 +++---
medialibrary/jni/utils.cpp | 92 ++++++++++++--------------------
medialibrary/jni/utils.h | 2 +-
4 files changed, 63 insertions(+), 99 deletions(-)
Diff: https://code.videolan.org/videolan/vlc-android/commit/ae76af2ec5e6d982ea02685991982bd2b2d9a3ef
More information about the Android
mailing list