Commit 693a9bd1 authored by Geoffrey Métais's avatar Geoffrey Métais

Prevent illegalStateException on media stop

parent 12f4e464
......@@ -129,7 +129,7 @@ class PlayerController : IVLCVout.Callback, MediaPlayer.EventListener {
fun getSpuDelay() = mediaplayer.spuDelay
fun getRate() = mediaplayer.rate
fun getRate() = if (mediaplayer.hasMedia()) mediaplayer.rate else 1.0f
fun setSpuDelay(delay: Long) = mediaplayer.setSpuDelay(delay)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment