diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2003-10-18 12:29:08 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2003-10-18 12:29:08 +0200 |
commit | e53e43d2b85095ec24e89fb8721d9c92e13ed930 (patch) | |
tree | ed5b2d1614a146e986ad2fee4b8933b52cb160b5 /device.c | |
parent | 15816ee8e4a1be96bba1da9199739f1666a87703 (diff) | |
download | vdr-e53e43d2b85095ec24e89fb8721d9c92e13ed930.tar.gz vdr-e53e43d2b85095ec24e89fb8721d9c92e13ed930.tar.bz2 |
The cThread class now accepts a 'Description' parameter
Diffstat (limited to 'device.c')
-rw-r--r-- | device.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: device.c 1.47 2003/08/15 12:34:36 kls Exp $ + * $Id: device.c 1.48 2003/10/18 12:19:39 kls Exp $ */ #include "device.h" @@ -36,6 +36,8 @@ cDevice::cDevice(void) { cardIndex = nextCardIndex++; + SetDescription("receiver on device %d", CardIndex() + 1); + SetVideoFormat(Setup.VideoFormat); active = false; @@ -665,8 +667,6 @@ bool cDevice::Receiving(bool CheckAny) const void cDevice::Action(void) { - dsyslog("receiver thread started on device %d (pid=%d)", CardIndex() + 1, getpid()); - if (OpenDvr()) { active = true; for (; active;) { @@ -689,8 +689,6 @@ void cDevice::Action(void) } CloseDvr(); } - - dsyslog("receiver thread ended on device %d (pid=%d)", CardIndex() + 1, getpid()); } bool cDevice::OpenDvr(void) |