summaryrefslogtreecommitdiff
path: root/dvbdevice.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-04-12 12:20:07 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-04-12 12:20:07 +0200
commit00166dac5fce46cb15ec558f176d45f734f815e9 (patch)
tree7b344099f2fab0dc81792e9ce62bc15c7d3e178a /dvbdevice.c
parentf8a7e51d00d66f2fd71c9f5966a893c59485584b (diff)
downloadvdr-00166dac5fce46cb15ec558f176d45f734f815e9.tar.gz
vdr-00166dac5fce46cb15ec558f176d45f734f815e9.tar.bz2
If no device with an MPEG decoder can be found at startup, the first device is now used as primary device
Diffstat (limited to 'dvbdevice.c')
-rw-r--r--dvbdevice.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/dvbdevice.c b/dvbdevice.c
index 58307f89..3e0a50bd 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.49 2003/03/30 12:40:47 kls Exp $
+ * $Id: dvbdevice.c 1.50 2003/04/12 12:09:16 kls Exp $
*/
#include "dvbdevice.h"
@@ -397,7 +397,8 @@ bool cDvbDevice::Initialize(void)
void cDvbDevice::MakePrimaryDevice(bool On)
{
- cDvbOsd::SetDvbDevice(On ? this : NULL);
+ if (HasDecoder())
+ cDvbOsd::SetDvbDevice(On ? this : NULL);
}
bool cDvbDevice::HasDecoder(void) const