refactor: remove delay when using mpv

This commit is contained in:
Jarne Demeulemeester 2024-05-11 20:23:00 +02:00
parent 45b5cb6bf3
commit c6c5011964
No known key found for this signature in database
GPG key ID: 1E5C6AFBD622E9F5

View file

@ -186,11 +186,6 @@ constructor(
currentMediaItemIndex, currentMediaItemIndex,
startPosition, 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.prepare()
player.play() player.play()
pollPosition(player) pollPosition(player)