diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-03-19 12:37:03 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-03-19 12:37:03 +0100 |
commit | bcacfad0572fc3c726e74ab6fba4bee228e5365d (patch) | |
tree | 3d6200ab1e04f7a05921ebd605295e3151dc6716 /dvbdevice.c | |
parent | 2eab16a3103a1ba8804d937f1087d2e3f8ab7886 (diff) | |
download | vdr-bcacfad0572fc3c726e74ab6fba4bee228e5365d.tar.gz vdr-bcacfad0572fc3c726e74ab6fba4bee228e5365d.tar.bz2 |
Fixed cDvbDevice::SetAudioBypass() in case setTransferModeForDolbyDigital is false
Diffstat (limited to 'dvbdevice.c')
-rw-r--r-- | dvbdevice.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dvbdevice.c b/dvbdevice.c index 148a12a5..a722be99 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.153 2006/02/19 13:52:04 kls Exp $ + * $Id: dvbdevice.c 1.154 2006/03/19 12:34:24 kls Exp $ */ #include "dvbdevice.h" @@ -653,6 +653,8 @@ eVideoSystem cDvbDevice::GetVideoSystem(void) bool cDvbDevice::SetAudioBypass(bool On) { + if (!setTransferModeForDolbyDigital) + return false; return ioctl(fd_audio, AUDIO_SET_BYPASS_MODE, On) == 0; } |