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

Fetch volume only if a media is loaded

parent 37cda385
......@@ -257,7 +257,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)
Supports Markdown
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