1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed checking for ttDolbyLast in cDevice::SetCurrentAudioTrack()

This commit is contained in:
Klaus Schmidinger 2007-08-26 11:13:10 +02:00
parent a80915ff22
commit ad1e138e5b
3 changed files with 5 additions and 2 deletions

View File

@ -1418,6 +1418,7 @@ Marco Schl
for reporting a missing 'P' in vdr.c's SHUTDOWNCANCELROMPT macro 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 fixing a problem with characters >0x7F in the modified version of skipspace()
for reporting a faulty comment in Make.config.template for reporting a faulty comment in Make.config.template
for fixing checking for ttDolbyLast in cDevice::SetCurrentAudioTrack()
Jürgen Schmitz <j.schmitz@web.de> Jürgen Schmitz <j.schmitz@web.de>
for reporting a bug in displaying the current channel when switching via the SVDRP for reporting a bug in displaying the current channel when switching via the SVDRP

View File

@ -5414,3 +5414,5 @@ Video Disk Recorder Revision History
the one that was created first will be displayed. the one that was created first will be displayed.
Plugins that provide an OSD need to adjust their cOsdProvider::CreateOsd() Plugins that provide an OSD need to adjust their cOsdProvider::CreateOsd()
function to hand through the Level. function to hand through the Level.
- Fixed checking for ttDolbyLast in cDevice::SetCurrentAudioTrack() (thanks
to Marco Schlüßler).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * 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" #include "device.h"
@ -892,7 +892,7 @@ int cDevice::NumAudioTracks(void) const
bool cDevice::SetCurrentAudioTrack(eTrackType Type) bool cDevice::SetCurrentAudioTrack(eTrackType Type)
{ {
if (ttNone < Type && Type < ttDolbyLast) { if (ttNone < Type && Type <= ttDolbyLast) {
cMutexLock MutexLock(&mutexCurrentAudioTrack); cMutexLock MutexLock(&mutexCurrentAudioTrack);
if (IS_DOLBY_TRACK(Type)) if (IS_DOLBY_TRACK(Type))
SetDigitalAudioDevice(true); SetDigitalAudioDevice(true);