If HTTP stream is not enabled, return -1 for volume
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user