Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
530
Issue boards
Milestones
Wiki
Code
Merge requests
11
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
182bcd9f
Commit
182bcd9f
authored
3 years ago
by
Nicolas Pomepuy
Browse files
Options
Downloads
Patches
Plain Diff
Update ML libvlc instance when it's restarted from app
parent
e18cfd37
No related branches found
No related tags found
1 merge request
!887
Network indexation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
application/resources/src/main/java/org/videolan/resources/VLCInstance.kt
+3
-0
3 additions, 0 deletions
...urces/src/main/java/org/videolan/resources/VLCInstance.kt
with
3 additions
and
0 deletions
application/resources/src/main/java/org/videolan/resources/VLCInstance.kt
+
3
−
0
View file @
182bcd9f
...
...
@@ -27,12 +27,14 @@ import android.content.Intent
import
android.util.Log
import
kotlinx.coroutines.ObsoleteCoroutinesApi
import
org.videolan.libvlc.FactoryManager
import
org.videolan.libvlc.LibVLC
import
org.videolan.libvlc.interfaces.ILibVLC
import
org.videolan.libvlc.interfaces.ILibVLCFactory
import
org.videolan.libvlc.util.VLCUtil
import
org.videolan.resources.VLCInstance.init
import
org.videolan.resources.util.VLCCrashHandler
import
org.videolan.tools.SingletonHolder
import
org.videolan.medialibrary.interfaces.Medialibrary
@ObsoleteCoroutinesApi
object
VLCInstance
:
SingletonHolder
<
ILibVLC
,
Context
>({
init
(
it
.
applicationContext
)
})
{
...
...
@@ -62,6 +64,7 @@ object VLCInstance : SingletonHolder<ILibVLC, Context>({ init(it.applicationCont
sLibVLC
.
release
()
sLibVLC
=
libVLCFactory
.
getFromOptions
(
AppContextProvider
.
appContext
,
VLCOptions
.
libOptions
)
instance
=
sLibVLC
Medialibrary
.
getInstance
().
setLibVLCInstance
((
sLibVLC
as
LibVLC
).
getInstance
())
}
fun
testCompatibleCPU
(
context
:
Context
):
Boolean
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment