summaryrefslogtreecommitdiff
path: root/recorder.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-08-14 11:24:57 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-08-14 11:24:57 +0200
commitaf54ce4842850f228d2ac85cb47e6339fd36e9c1 (patch)
tree5bcf8cb26d825d4e8f4d84b504cd502cfb2bd6e9 /recorder.c
parent8fe90254f6843fedab11f4bbf7f83090e341f6eb (diff)
downloadvdr-af54ce4842850f228d2ac85cb47e6339fd36e9c1.tar.gz
vdr-af54ce4842850f228d2ac85cb47e6339fd36e9c1.tar.bz2
Changed cThread Active() vs. Running()
Diffstat (limited to 'recorder.c')
-rw-r--r--recorder.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/recorder.c b/recorder.c
index 253d8391..34236fca 100644
--- a/recorder.c
+++ b/recorder.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recorder.c 1.14 2005/08/13 11:33:35 kls Exp $
+ * $Id: recorder.c 1.15 2005/08/14 10:53:28 kls Exp $
*/
#include <stdarg.h>
@@ -93,11 +93,11 @@ bool cFileWriter::NextFile(void)
void cFileWriter::Action(void)
{
time_t t = time(NULL);
- while (Active()) {
+ while (Running()) {
int Count;
uchar *p = remux->Get(Count, &pictureType);
if (p) {
- if (!Active() && pictureType == I_FRAME) // finish the recording before the next 'I' frame
+ if (!Running() && pictureType == I_FRAME) // finish the recording before the next 'I' frame
break;
if (NextFile()) {
if (index && pictureType != NO_PICTURE)
@@ -155,16 +155,16 @@ void cRecorder::Activate(bool On)
void cRecorder::Receive(uchar *Data, int Length)
{
- if (Active()) {
+ if (Running()) {
int p = ringBuffer->Put(Data, Length);
- if (p != Length && Active())
+ if (p != Length && Running())
ringBuffer->ReportOverflow(Length - p);
}
}
void cRecorder::Action(void)
{
- while (Active()) {
+ while (Running()) {
int r;
uchar *b = ringBuffer->Get(r);
if (b) {