summaryrefslogtreecommitdiff
path: root/dvbdevice.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-04-12 15:10:06 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-04-12 15:10:06 +0200
commita22a2b7218b16d93b5195c3901bceea9acb4d4ab (patch)
tree755469f4ab214b21caedc69312ff3b022595ad65 /dvbdevice.c
parentf20648eab26f8efee41642f198da3d35b2d408c1 (diff)
downloadvdr-a22a2b7218b16d93b5195c3901bceea9acb4d4ab.tar.gz
vdr-a22a2b7218b16d93b5195c3901bceea9acb4d4ab.tar.bz2
Fixed handling of Ca parameters with values <= MAXDEVICES
Diffstat (limited to 'dvbdevice.c')
-rw-r--r--dvbdevice.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dvbdevice.c b/dvbdevice.c
index 3e0a50bd..9bbac2d2 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.50 2003/04/12 12:09:16 kls Exp $
+ * $Id: dvbdevice.c 1.51 2003/04/12 15:06:11 kls Exp $
*/
#include "dvbdevice.h"
@@ -714,7 +714,7 @@ int cDvbDevice::NumAudioTracksDevice(void) const
int n = 0;
if (aPid1)
n++;
- if (!Ca() && aPid2 && aPid1 != aPid2) // a Ca recording session blocks switching live audio tracks
+ if (Ca() <= MAXDEVICES && aPid2 && aPid1 != aPid2) // a Ca recording session blocks switching live audio tracks
n++;
return n;
}
@@ -746,7 +746,7 @@ bool cDvbDevice::CanReplay(void) const
if (Receiving())
return false;
#endif
- return cDevice::CanReplay() && !Ca(); // we can only replay if there is no Ca recording going on
+ return cDevice::CanReplay() && Ca() <= MAXDEVICES; // we can only replay if there is no Ca recording going on
}
bool cDvbDevice::SetPlayMode(ePlayMode PlayMode)