summaryrefslogtreecommitdiff
path: root/audio.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2010-05-16 11:00:52 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2010-05-16 11:00:52 +0200
commit0f9b247122314e51f06d848b7801dbfcacab3de7 (patch)
treeae807b606791cfd670d3621136f8d4bb346952a7 /audio.c
parent225f7ab6411e58340c828b111ec11742cc737fda (diff)
downloadvdr-0f9b247122314e51f06d848b7801dbfcacab3de7.tar.gz
vdr-0f9b247122314e51f06d848b7801dbfcacab3de7.tar.bz2
Fixed a problem with external Dolby Digital processing via the '-a' option in live mode and with TS recordings
Diffstat (limited to 'audio.c')
-rw-r--r--audio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/audio.c b/audio.c
index 66430d54..2c8e4f72 100644
--- a/audio.c
+++ b/audio.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: audio.c 2.1 2008/07/06 11:42:58 kls Exp $
+ * $Id: audio.c 2.2 2010/05/16 11:00:52 kls Exp $
*/
#include "audio.h"
@@ -56,6 +56,7 @@ cExternalAudio::cExternalAudio(const char *Command)
{
command = strdup(Command);
mute = false;
+ cDvbDevice::SetTransferModeForDolbyDigital(2);
}
cExternalAudio::~cExternalAudio()
@@ -68,7 +69,6 @@ void cExternalAudio::Play(const uchar *Data, int Length, uchar Id)
if (command && !mute) {
if (pipe || pipe.Open(command, "w")) {
if (0x80 <= Id && Id <= 0x87 || Id == 0xBD) { // AC3
- cDvbDevice::SetTransferModeForDolbyDigital(2);
int written = Data[8] + 9; // skips the PES header
if (Id != 0xBD)
written += 4; // skips AC3 bytes