From af54ce4842850f228d2ac85cb47e6339fd36e9c1 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 14 Aug 2005 11:24:57 +0200 Subject: Changed cThread Active() vs. Running() --- device.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'device.c') diff --git a/device.c b/device.c index c9227f92..9fcc420b 100644 --- a/device.c +++ b/device.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: device.c 1.104 2005/08/13 11:44:06 kls Exp $ + * $Id: device.c 1.105 2005/08/14 10:52:08 kls Exp $ */ #include "device.h" @@ -1124,8 +1124,8 @@ bool cDevice::Receiving(bool CheckAny) const void cDevice::Action(void) { - if (Active() && OpenDvr()) { - while (Active()) { + if (Running() && OpenDvr()) { + while (Running()) { // Read data from the DVR device: uchar *b = NULL; if (GetTSPacket(b)) { @@ -1186,7 +1186,7 @@ bool cDevice::AttachReceiver(cReceiver *Receiver) Receiver->device = this; receiver[i] = Receiver; Unlock(); - if (!Active()) + if (!Running()) Start(); return true; } @@ -1254,7 +1254,7 @@ void cTSBuffer::Action(void) if (ringBuffer) { bool firstRead = true; cPoller Poller(f); - while (Active()) { + while (Running()) { if (firstRead || Poller.Poll(100)) { firstRead = false; int r = ringBuffer->Read(f); -- cgit v1.2.3