Commit 7b1f9cd9 authored by Geoffrey Métais's avatar Geoffrey Métais

Fetch volume only if a media is loaded

parent 7867264b
......@@ -252,7 +252,7 @@ class PlayerController : IVLCVout.Callback, MediaPlayer.EventListener {
mediaplayer.title = title
fun getVolume() = mediaplayer.volume
fun getVolume() = if (mediaplayer.hasMedia()) mediaplayer.volume else 100
fun setVolume(volume: Int) = mediaplayer.setVolume(volume)
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