[Android] Fix libvlc instance not correctly restarted

Nicolas Pomepuy git at videolan.org
Mon Mar 29 06:09:34 UTC 2021


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Mar 26 08:40:44 2021 +0100| [7cc5e7591cb18841942104504a4cb6df22b5aa53] | committer: Nicolas Pomepuy

Fix libvlc instance not correctly restarted

> https://code.videolan.org/videolan/vlc-android/commit/7cc5e7591cb18841942104504a4cb6df22b5aa53
---

 .../resources/src/main/java/org/videolan/resources/VLCInstance.kt        | 1 +
 1 file changed, 1 insertion(+)

diff --git a/application/resources/src/main/java/org/videolan/resources/VLCInstance.kt b/application/resources/src/main/java/org/videolan/resources/VLCInstance.kt
index ee9ee1d35..307a4966b 100644
--- a/application/resources/src/main/java/org/videolan/resources/VLCInstance.kt
+++ b/application/resources/src/main/java/org/videolan/resources/VLCInstance.kt
@@ -61,6 +61,7 @@ object VLCInstance : SingletonHolder<ILibVLC, Context>({ init(it.applicationCont
     fun restart() {
         sLibVLC.release()
         sLibVLC = libVLCFactory.getFromOptions(AppContextProvider.appContext, VLCOptions.libOptions)
+        instance = sLibVLC
     }
 
     fun testCompatibleCPU(context: Context): Boolean {



More information about the Android mailing list