summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-09-14 13:26:16 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-09-14 13:26:16 +0200
commitfd3cc6f9979b432a294dbf2516e1c6b913b2d2a5 (patch)
tree902654dd63d3d48286496792ce6ac7e5ea273819
parentd9bf48ec5ac134c4f6393a5871229a00af1a7776 (diff)
downloadvdr-fd3cc6f9979b432a294dbf2516e1c6b913b2d2a5.tar.gz
vdr-fd3cc6f9979b432a294dbf2516e1c6b913b2d2a5.tar.bz2
Fixed clearing PIDs
-rw-r--r--dvbdevice.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dvbdevice.c b/dvbdevice.c
index bca14ce6..d455759b 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.15 2002/09/14 12:14:38 kls Exp $
+ * $Id: dvbdevice.c 1.16 2002/09/14 13:26:16 kls Exp $
*/
#include "dvbdevice.h"
@@ -321,9 +321,9 @@ bool cDvbDevice::SetPid(cPidHandle *Handle, int Type, bool On)
return false;
}
}
- else {
+ else if (!Handle->used) {
CHECK(ioctl(Handle->handle, DMX_STOP));
- if (Handle->used == 0 && Type <= ptTeletext) {
+ if (Type <= ptTeletext) {
pesFilterParams.pid = 0x1FFF;
pesFilterParams.input = DMX_IN_FRONTEND;
pesFilterParams.output = DMX_OUT_DECODER;