Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
528
Issue boards
Milestones
Wiki
Code
Merge requests
14
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
a1ffefa0
Commit
a1ffefa0
authored
5 months ago
by
Nicolas Pomepuy
Browse files
Options
Downloads
Patches
Plain Diff
Prevent crash on race condition
Fixes #3083
parent
196ab52f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1973
Crash fixes
Pipeline
#512293
passed with stage
in 7 minutes and 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
application/vlc-android/src/org/videolan/vlc/viewmodels/browser/BrowserModel.kt
+4
-3
4 additions, 3 deletions
...d/src/org/videolan/vlc/viewmodels/browser/BrowserModel.kt
with
4 additions
and
3 deletions
application/vlc-android/src/org/videolan/vlc/viewmodels/browser/BrowserModel.kt
+
4
−
3
View file @
a1ffefa0
...
...
@@ -162,9 +162,10 @@ open class BrowserModel(
suspend
fun
updateMediaPlayed
(
mw
:
MediaWrapper
)
=
withContext
(
Dispatchers
.
IO
)
{
if
(
dataset
.
getList
().
contains
(
mw
))
{
val
item
=
provider
.
medialibrary
.
getMedia
(
mw
.
id
)
withContext
(
Dispatchers
.
Main
)
{
dataset
.
replace
(
item
)
provider
.
medialibrary
.
getMedia
(
mw
.
id
)
?.
let
{
item
->
withContext
(
Dispatchers
.
Main
)
{
dataset
.
replace
(
item
)
}
}
}
}
...
...
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