summaryrefslogtreecommitdiff
path: root/receiver.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-08-12 12:30:00 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2007-08-12 12:30:00 +0200
commit1c7f9c81b495dfd367b0c947f09cfde819fa1ea3 (patch)
treefe99df926965f2f9f06423693e0cbc0c905d73bd /receiver.c
parent4c28809e2d438f3907427dab9bf35c2d8ebb1662 (diff)
downloadvdr-1c7f9c81b495dfd367b0c947f09cfde819fa1ea3.tar.gz
vdr-1c7f9c81b495dfd367b0c947f09cfde819fa1ea3.tar.bz2
Added a debug error message to cReceiver::~cReceiver() in case it is still attached to a device1.5.7
Diffstat (limited to 'receiver.c')
-rw-r--r--receiver.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/receiver.c b/receiver.c
index b74a18bf..4f537e23 100644
--- a/receiver.c
+++ b/receiver.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: receiver.c 1.6 2007/01/07 14:42:29 kls Exp $
+ * $Id: receiver.c 1.7 2007/08/12 12:30:00 kls Exp $
*/
#include "receiver.h"
@@ -38,7 +38,12 @@ cReceiver::cReceiver(tChannelID ChannelID, int Priority, int Pid, const int *Pid
cReceiver::~cReceiver()
{
- Detach();
+ if (device) {
+ const char *msg = "ERROR: cReceiver has not been detached yet! This is a design fault and VDR will segfault now!";
+ esyslog(msg);
+ fprintf(stderr, "%s\n", msg);
+ *(char *)0 = 0; // cause a segfault
+ }
}
bool cReceiver::WantsPid(int Pid)