refactor: remove delay when using mpv
This commit is contained in:
parent
45b5cb6bf3
commit
c6c5011964
1 changed files with 0 additions and 5 deletions
|
@ -186,11 +186,6 @@ constructor(
|
|||
currentMediaItemIndex,
|
||||
startPosition,
|
||||
)
|
||||
if (appPreferences.playerMpv) { // For some reason, adding a 1ms delay between these two lines fixes a crash when playing with mpv from downloads
|
||||
withContext(Dispatchers.IO) {
|
||||
Thread.sleep(1)
|
||||
}
|
||||
}
|
||||
player.prepare()
|
||||
player.play()
|
||||
pollPosition(player)
|
||||
|
|
Loading…
Reference in a new issue