mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Added a debug error message to cReceiver::~cReceiver() in case it is still attached to a device
This commit is contained in:
parent
4c28809e2d
commit
1c7f9c81b4
@ -1127,6 +1127,8 @@ Reinhard Nissl <rnissl@gmx.de>
|
||||
with open file handles when starting background commands
|
||||
for fixing handling error status in cDvbTuner::GetFrontendStatus()
|
||||
for fixing a busy loop in fast forward if the next video data file is missing
|
||||
for adding a debug error message to cReceiver::~cReceiver() in case it is still
|
||||
attached to a device
|
||||
|
||||
Richard Robson <richard_robson@beeb.net>
|
||||
for reporting freezing replay if a timer starts while in Transfer Mode from the
|
||||
|
2
HISTORY
2
HISTORY
@ -5343,3 +5343,5 @@ Video Disk Recorder Revision History
|
||||
- cBitmap::SetXpm() now checks whether the given Xpm pointer is not NULL, to
|
||||
avoid a crash with files that only contain "/* XPM */" (suggested by Andreas
|
||||
Mair).
|
||||
- Added a debug error message to cReceiver::~cReceiver() in case it is still
|
||||
attached to a device (thanks to Reinhard Nissl).
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user