summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-07-29 10:17:35 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-07-29 10:17:35 +0200
commitcdad4a6b4e1b3c11099c7587714946629400bce3 (patch)
treefb5fe50655aea45e7c150684e4e1f102cea1ac28
parentafb7ae32954eece9a3088815e6c2e17d34328368 (diff)
downloadvdr-cdad4a6b4e1b3c11099c7587714946629400bce3.tar.gz
vdr-cdad4a6b4e1b3c11099c7587714946629400bce3.tar.bz2
Fixed cDevice::ToggleMute()
-rw-r--r--CONTRIBUTORS1
-rw-r--r--HISTORY1
-rw-r--r--device.c6
3 files changed, 5 insertions, 3 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 38f21ffd..b9b4809c 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -1873,6 +1873,7 @@ Christoph Haubrich <christoph1.haubrich@arcor.de>
the jump instead of closing the display
for reporting that the log message "deleting plugin: ..." is irritating when
calling "vdr --help"
+ for fixing cDevice::ToggleMute()
Pekka Mauno <pekka.mauno@iki.fi>
for fixing cSchedule::GetFollowingEvent() in case there is currently no present
diff --git a/HISTORY b/HISTORY
index dd668bdd..af73d0f2 100644
--- a/HISTORY
+++ b/HISTORY
@@ -4841,3 +4841,4 @@ Video Disk Recorder Revision History
(thanks to Frank Schmirler).
- Increased the APIVERSION to allow plugins that relied on the cStatus::MsgSetVolume()
bug to react properly (suggested by Stefan Huelswitt).
+- Fixed cDevice::ToggleMute() (thanks to Christoph Haubrich).
diff --git a/device.c b/device.c
index 8f451d71..882279cb 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.133 2006/07/22 14:06:11 kls Exp $
+ * $Id: device.c 1.134 2006/07/29 10:03:56 kls Exp $
*/
#include "device.h"
@@ -751,12 +751,12 @@ bool cDevice::ToggleMute(void)
mute = !mute;
//XXX why is it necessary to use different sequences???
if (mute) {
- SetVolume(0, mute);
+ SetVolume(0, true);
Audios.MuteAudio(mute); // Mute external audio after analog audio
}
else {
Audios.MuteAudio(mute); // Enable external audio before analog audio
- SetVolume(0, mute);
+ SetVolume(OldVolume, true);
}
volume = OldVolume;
return mute;