Commit b3d04087 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Prevent illegalStateException on media stop

parent 1ff780ac
......@@ -133,7 +133,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