summaryrefslogtreecommitdiff
path: root/dvbdevice.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-01-05 12:29:26 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-01-05 12:29:26 +0100
commit0901afcf6d0714b65a79ea55a94604fe51c5503f (patch)
tree0a5e60dc48af6059dea59609032353e8e15ff84c /dvbdevice.c
parent6096500940b17b92ac6be82007daf22e055e041e (diff)
downloadvdr-0901afcf6d0714b65a79ea55a94604fe51c5503f.tar.gz
vdr-0901afcf6d0714b65a79ea55a94604fe51c5503f.tar.bz2
Fixed a crash in case there is no DVB hardware present
Diffstat (limited to 'dvbdevice.c')
-rw-r--r--dvbdevice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dvbdevice.c b/dvbdevice.c
index 15c6786d..f9ae5760 100644
--- a/dvbdevice.c
+++ b/dvbdevice.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbdevice.c 1.76 2004/01/04 12:28:00 kls Exp $
+ * $Id: dvbdevice.c 1.77 2004/01/05 12:24:18 kls Exp $
*/
#include "dvbdevice.h"
@@ -772,7 +772,7 @@ bool cDvbDevice::SetChannelDevice(const cChannel *Channel, bool LiveView)
bool cDvbDevice::HasLock(void)
{
- return dvbTuner->Locked();
+ return dvbTuner ? dvbTuner->Locked() : false;
}
void cDvbDevice::SetVolumeDevice(int Volume)