From 5ff1d3571199dfa412e8e1cb7eb2a4f920fdbdd5 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 3 Sep 2006 11:49:32 +0200 Subject: Fixed handling relative volume settings that unmute the audio in the call to cStatus::MsgSetVolume() --- device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'device.c') diff --git a/device.c b/device.c index c17cb0b5..0fb4fc75 100644 --- a/device.c +++ b/device.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: device.c 1.136 2006/08/26 14:11:03 kls Exp $ + * $Id: device.c 1.137 2006/09/03 10:13:25 kls Exp $ */ #include "device.h" @@ -779,6 +779,7 @@ void cDevice::SetVolume(int Volume, bool Absolute) int OldVolume = volume; volume = min(max(Absolute ? Volume : volume + Volume, 0), MAXVOLUME); SetVolumeDevice(volume); + Absolute |= mute; cStatus::MsgSetVolume(Absolute ? volume : volume - OldVolume, Absolute); if (volume > 0) { mute = false; -- cgit v1.2.3