From fd3cc6f9979b432a294dbf2516e1c6b913b2d2a5 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 14 Sep 2002 13:26:16 +0200 Subject: [PATCH] Fixed clearing PIDs --- dvbdevice.c | 6 +++--- 1 file 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;