summaryrefslogtreecommitdiff
path: root/transfer.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-01-06 16:23:11 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-01-06 16:23:11 +0100
commitcb696731e693392e07817d276f7ccb627a23dc51 (patch)
treee164a37d6d0728134116bc4fb615dd613c3bcf33 /transfer.c
parent05bd062f792b1c4d1b7b4222c84d239584a1dc60 (diff)
downloadvdr-cb696731e693392e07817d276f7ccb627a23dc51.tar.gz
vdr-cb696731e693392e07817d276f7ccb627a23dc51.tar.bz2
Only waiting for data if there actually is a DPid
Diffstat (limited to 'transfer.c')
-rw-r--r--transfer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/transfer.c b/transfer.c
index 97585760..2f415fba 100644
--- a/transfer.c
+++ b/transfer.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: transfer.c 1.20 2004/12/27 11:08:34 kls Exp $
+ * $Id: transfer.c 1.21 2005/01/06 16:23:11 kls Exp $
*/
#include "transfer.h"
@@ -20,6 +20,7 @@ cTransfer::cTransfer(int VPid, int APid1, int APid2, int DPid1, int DPid2)
{
ringBuffer = new cRingBufferLinear(TRANSFERBUFSIZE, TS_SIZE * 2, true, "Transfer");
remux = new cRemux(VPid, APid1, APid2, DPid1, DPid2);
+ hasDolby = VPid != 0 && DPid1 != 0;
active = false;
}
@@ -66,8 +67,7 @@ void cTransfer::Action(void)
active = true;
while (active) {
#ifdef FW_NEEDS_BUFFER_RESERVE_FOR_AC3
-#define HasDolby true
- if (HasDolby) {
+ if (hasDolby) {
if (IsAttached() && !Cleared) {
PlayPes(NULL, 0);
Cleared = true;