If HTTP stream is not enabled, return -1 for volume

This commit is contained in:
Craig Drummond
2018-09-19 17:16:53 +01:00
parent 4dfe319be5
commit 26627b4140

View File

@@ -106,6 +106,10 @@ void HttpStream::setVolume(int vol)
int HttpStream::volume()
{
if (!enabled) {
return -1;
}
int vol=currentVolume;
if (player && !isMuted()) {
#ifdef LIBVLC_FOUND