summaryrefslogtreecommitdiff
path: root/dvbdevice.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-02-13 14:26:37 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-02-13 14:26:37 +0100
commit84d57ed54d1d1d42e0ad0ac5ed0efe954fa740cf (patch)
treeff89e791267d7e6f2fdefdaee1eca0e76d4dc2f2 /dvbdevice.c
parent28976bf276b27c06abdea22472dd60e48103a6e1 (diff)
downloadvdr-84d57ed54d1d1d42e0ad0ac5ed0efe954fa740cf.tar.gz
vdr-84d57ed54d1d1d42e0ad0ac5ed0efe954fa740cf.tar.bz2
Implemented cDvbDevice::SetTransferModeForDolbyDigital()
Diffstat (limited to 'dvbdevice.c')
-rw-r--r--dvbdevice.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/dvbdevice.c b/dvbdevice.c
index 5659c515..741848a8 100644
--- a/dvbdevice.c
+++ b/dvbdevice.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbdevice.c 1.119 2005/02/08 14:07:16 kls Exp $
+ * $Id: dvbdevice.c 1.120 2005/02/13 14:26:37 kls Exp $
*/
#include "dvbdevice.h"
@@ -346,6 +346,7 @@ void cDvbTuner::Action(void)
// --- cDvbDevice ------------------------------------------------------------
int cDvbDevice::devVideoOffset = -1;
+bool cDvbDevice::setTransferModeForDolbyDigital = true;
cDvbDevice::cDvbDevice(int n)
{
@@ -861,6 +862,11 @@ void cDvbDevice::SetDigitalAudioDevice(bool On)
}
}
+void cDvbDevice::SetTransferModeForDolbyDigital(bool On)
+{
+ setTransferModeForDolbyDigital = On;
+}
+
void cDvbDevice::SetAudioTrackDevice(eTrackType Type)
{
const tTrackId *TrackId = GetTrack(Type);
@@ -872,6 +878,8 @@ void cDvbDevice::SetAudioTrackDevice(eTrackType Type)
}
}
else if (IS_DOLBY_TRACK(Type)) {
+ if (!setTransferModeForDolbyDigital)
+ return;
// Currently this works only in Transfer Mode
cChannel *Channel = Channels.GetByNumber(CurrentChannel());
if (Channel)