summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-08-26 11:13:10 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2007-08-26 11:13:10 +0200
commitad1e138e5bac20f539725f479a192d66d60827bc (patch)
tree944c2234b370201133a3439bf96956963ea00ded
parenta80915ff22ec0103fb95212b0048aa73007f87eb (diff)
downloadvdr-ad1e138e5bac20f539725f479a192d66d60827bc.tar.gz
vdr-ad1e138e5bac20f539725f479a192d66d60827bc.tar.bz2
Fixed checking for ttDolbyLast in cDevice::SetCurrentAudioTrack()1.5.9
-rw-r--r--CONTRIBUTORS1
-rw-r--r--HISTORY2
-rw-r--r--device.c4
3 files changed, 5 insertions, 2 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 3093bf3b..bddbeed1 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -1418,6 +1418,7 @@ Marco Schlüßler <marco@lordzodiac.de>
for reporting a missing 'P' in vdr.c's SHUTDOWNCANCELROMPT macro
for fixing a problem with characters >0x7F in the modified version of skipspace()
for reporting a faulty comment in Make.config.template
+ for fixing checking for ttDolbyLast in cDevice::SetCurrentAudioTrack()
Jürgen Schmitz <j.schmitz@web.de>
for reporting a bug in displaying the current channel when switching via the SVDRP
diff --git a/HISTORY b/HISTORY
index e55f4cca..c89b2183 100644
--- a/HISTORY
+++ b/HISTORY
@@ -5414,3 +5414,5 @@ Video Disk Recorder Revision History
the one that was created first will be displayed.
Plugins that provide an OSD need to adjust their cOsdProvider::CreateOsd()
function to hand through the Level.
+- Fixed checking for ttDolbyLast in cDevice::SetCurrentAudioTrack() (thanks
+ to Marco Schlüßler).
diff --git a/device.c b/device.c
index ae9e15e8..e23b74b8 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.141 2007/06/16 09:31:32 kls Exp $
+ * $Id: device.c 1.142 2007/08/26 11:11:42 kls Exp $
*/
#include "device.h"
@@ -892,7 +892,7 @@ int cDevice::NumAudioTracks(void) const
bool cDevice::SetCurrentAudioTrack(eTrackType Type)
{
- if (ttNone < Type && Type < ttDolbyLast) {
+ if (ttNone < Type && Type <= ttDolbyLast) {
cMutexLock MutexLock(&mutexCurrentAudioTrack);
if (IS_DOLBY_TRACK(Type))
SetDigitalAudioDevice(true);