Fixed a crash in case there is no DVB hardware present

This commit is contained in:
Klaus Schmidinger 2004-01-05 12:29:26 +01:00
parent 6096500940
commit 0901afcf6d
3 changed files with 5 additions and 2 deletions

View File

@ -672,6 +672,7 @@ Sascha Volkenandt <sascha@akv-soft.de>
for making the 'epg.data' file being read after all plugins have been started for making the 'epg.data' file being read after all plugins have been started
for reporting a problem with cReceivers that use a ring buffer and didn't immediately for reporting a problem with cReceivers that use a ring buffer and didn't immediately
return from their Receive() function if the buffer runs full return from their Receive() function if the buffer runs full
for reporting a crash in case there is no DVB hardware present
Malcolm Caldwell <malcolm.caldwell@ntu.edu.au> Malcolm Caldwell <malcolm.caldwell@ntu.edu.au>
for modifying LOF handling to allow for C-band reception for modifying LOF handling to allow for C-band reception

View File

@ -2550,3 +2550,5 @@ Video Disk Recorder Revision History
control if and how channels will be automatically updated (see MANUAL). control if and how channels will be automatically updated (see MANUAL).
This has already been part of the 'autopid' patch by Andreas Schultz and has This has already been part of the 'autopid' patch by Andreas Schultz and has
now been adopted. now been adopted.
- Fixed a crash in case there is no DVB hardware present (thanks to Sascha
Volkenandt for reporting this one).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * 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" #include "dvbdevice.h"
@ -772,7 +772,7 @@ bool cDvbDevice::SetChannelDevice(const cChannel *Channel, bool LiveView)
bool cDvbDevice::HasLock(void) bool cDvbDevice::HasLock(void)
{ {
return dvbTuner->Locked(); return dvbTuner ? dvbTuner->Locked() : false;
} }
void cDvbDevice::SetVolumeDevice(int Volume) void cDvbDevice::SetVolumeDevice(int Volume)